Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
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
Examples:
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
Examples:
Since: 3.0.0
Focus
Focus