Namespace: CanvasInterpolation

Phaser.Display.Canvas. CanvasInterpolation

Methods


<static> setBicubic(canvas)

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

Parameters:
Name Type Description
canvas HTMLCanvasElement

The canvas object to have the style set on.

Since: 3.0.0
Source: src/display/canvas/CanvasInterpolation.js (Line 37)
Returns:

The canvas.

Type
HTMLCanvasElement

<static> setCrisp(canvas)

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

Parameters:
Name Type Description
canvas HTMLCanvasElement

The canvas object to have the style set on.

Since: 3.0.0
Source: src/display/canvas/CanvasInterpolation.js (Line 13)
Returns:

The canvas.

Type
HTMLCanvasElement