Phaser API Documentation

  Version: 
syncShadow(context, enabled)

Description:

Synchronize the shadow settings to the given Canvas Rendering Context.

Parameters:

name type description
context CanvasRenderingContext2D

The Canvas Rendering Context.

enabled boolean

Whether shadows are enabled or not.

Examples:
Since: 3.0.0