Phaser API Documentation

  Version: 
setToContext(ctx)

Description:

Copy the values from this Matrix to the given Canvas Rendering Context. This will use the Context.setTransform method.

Parameters:

name type description
ctx CanvasRenderingContext2D

The Canvas Rendering Context to copy the matrix values to.

Returns:
Description:

The Canvas Rendering Context.

Type:
  • CanvasRenderingContext2D
Since: 3.12.0