Phaser API Documentation

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

Description:

Set 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:

This Text object.

Since: 3.0.0