Sets the fillStyle on the target context based on the given Shape.
name | type | arguments | description |
---|---|---|---|
ctx | CanvasRenderingContext2D |
The context to set the fill style on. |
|
src | Phaser.GameObjects.Shape |
The Game Object to set the fill style from. |
|
altColor | number | <optional> |
An alternative color to render with. |
altAlpha | number | <optional> |
An alternative alpha to render with. |