Phaser API Documentation

  Version: 
Filter
Namespace: CanvasInterpolation
Phaser.Display.Canvas.CanvasInterpolation

Methods

<static> setCrisp(canvas)
Focus
Focus

Description:

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.

Returns:
Description:

The canvas.

Type:
  • HTMLCanvasElement
Since: 3.0.0
Focus
Focus
<static> setBicubic(canvas)
Focus
Focus

Description:

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.

Returns:
Description:

The canvas.

Type:
  • HTMLCanvasElement
Since: 3.0.0
Focus
Focus