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.

Since: 3.0.0