Phaser API Documentation

  Version: 
copyToContext(ctx)

Description:

Copy the values from this Matrix to the given Canvas Rendering Context. This will use the Context.transform 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