You’re reading the docs for Phaser v3.90.0. The latest is Phaser v4.1.0.

Phaser.Display.Canvas.CanvasInterpolation

Scope: static

Source: src/display/canvas/CanvasInterpolation.js#L7
Since: 3.0.0

Static functions

setBicubic

staticsetBicubic(canvas)

Description:

Sets the CSS image-rendering property on the given canvas to be 'bicubic' (aka 'auto').

Parameters:

nametypeoptionaldescription
canvasHTMLCanvasElementNoThe canvas object to have the style set on.

Returns: HTMLCanvasElement - The canvas.

Source: src/display/canvas/CanvasInterpolation.js#L37
Since: 3.0.0


setCrisp

staticsetCrisp(canvas)

Description:

Sets the CSS image-rendering property on the given canvas to be 'crisp' (aka 'optimize contrast' on webkit).

Parameters:

nametypeoptionaldescription
canvasHTMLCanvasElementNoThe canvas object to have the style set on.

Returns: HTMLCanvasElement - The canvas.

Source: src/display/canvas/CanvasInterpolation.js#L13
Since: 3.0.0