Skip to main content
Version: Phaser v4.1.0

Phaser.ScaleModes

Scope: static

Source: src/renderer/ScaleModes.js#L7
Since: 3.0.0

Static functions​

DEFAULT​

DEFAULT: number​

Description:

Default Scale Mode (Linear).

Source: src/renderer/ScaleModes.js#L16
Since: 3.0.0


LINEAR​

LINEAR: number​

Description:

Linear Scale Mode. Uses bilinear interpolation when scaling textures, producing smooth results. Best for non-pixel-art graphics where smooth scaling is desired.

Source: src/renderer/ScaleModes.js#L26
Since: 3.0.0


NEAREST​

NEAREST: number​

Description:

Nearest Scale Mode. Uses nearest-neighbor sampling when scaling textures, preserving hard pixel edges without interpolation. Best for pixel art and retro-style graphics.

Source: src/renderer/ScaleModes.js#L36
Since: 3.0.0