Phaser API Documentation

  Version: 
rotateCanvas(radians)

Description:

Inserts a rotation command into this Graphics objects command buffer.

All objects drawn after calling this method will be rotated by the given amount.

This does not change the rotation of the Graphics object itself, only of the objects drawn by it after calling this method.

Parameters:

name type description
radians number

The rotation angle, in radians.

Returns:
Description:

This Game Object.

Since: 3.0.0