Phaser API Documentation

  Version: 
<static> setCrisp(canvas)

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