Phaser API Documentation

  Version: 
<static> isEnabled(context)

Description:

Returns true if the given context has image smoothing enabled, otherwise returns false. Returns null if no smoothing prefix is available.

Parameters:

name type description
context CanvasRenderingContext2D | WebGLRenderingContext

The context to check.

Returns:
Description:

true if smoothing is enabled on the context, otherwise false. null if not supported.

Type:
  • boolean
Since: 3.0.0