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.
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. |
The parent Text object.