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