Phaser.Display.Canvas.CanvasInterpolation

Scope: static

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

Methods:

Public Members

setBicubic

<static> setBicubic(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

<static> setCrisp(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


Private Members

Updated on