Phaser API Documentation

  Version: 
<static> getPrefix(context)

Description:

Gets the Smoothing Enabled vendor prefix being used on the given context, or null if not set.

Parameters:

name type description
context CanvasRenderingContext2D | WebGLRenderingContext

The canvas context to check.

Returns:
Description:

The name of the property on the context which controls image smoothing (either imageSmoothingEnabled or a vendor-prefixed version thereof), or null if not supported.

Type:
  • string
Since: 3.0.0