shadow(color, blur, x, y) → {Phaser.BitmapData}
Sets the shadow properties of this BitmapDatas context which will affect all draw operations made to it.
You can cancel an existing shadow by calling this method and passing no parameters.
Note: At the time of writing (October 2014) Chrome still doesn't support shadowBlur used with drawImage.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
color | string | The color of the shadow, given in a CSS format, i.e. | ||
blur | number | <optional> | 5 | The amount the shadow will be blurred by. Low values = a crisp shadow, high values = a softer shadow. |
x | number | <optional> | 10 | The horizontal offset of the shadow in pixels. |
y | number | <optional> | 10 | The vertical offset of the shadow in pixels. |
Returns
This BitmapData object for method chaining.
- Source code: gameobjects/BitmapData.js (Line 1706)
Please login to continue.