crystal.window.set_scaling_mode

Sets how the game draws at resolutions larger than its native size.

The default scaling mode is "crop_or_squish".

Usage

crystal.window.set_scaling_mode(mode)

Arguments

Name Type Description
mode ScalingMode Scaling mode to use.

Examples

crystal.window.set_scaling_mode("none");
crystal.window.set_scaling_mode("pixel_perfect");
crystal.window.set_scaling_mode("crop_or_squish");

This site uses Just the Docs, a documentation theme for Jekyll.