Phaser API Documentation

  Version: 
setShadow([x], [y], [color], [blur], [shadowStroke], [shadowFill])

Description:

Set the shadow settings.

Calling this method always re-measures the parent Text object, so only call it when you actually change the shadow settings.

Parameters:

name type arguments Default description
x number <optional> 0

The horizontal shadow offset.

y number <optional> 0

The vertical shadow offset.

color string <optional> '#000'

The shadow color.

blur number <optional> 0

The shadow blur radius.

shadowStroke boolean <optional> false

Whether to stroke the shadow.

shadowFill boolean <optional> true

Whether to fill the shadow.

Returns:
Description:

The parent Text object.

Examples:
Since: 3.0.0