Phaser API Documentation

  Version: 
<private> LineStyleCanvas(ctx, src, [altColor], [altAlpha])

Description:

Sets the strokeStyle and lineWidth on the target context based on the given Shape.

Parameters:

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.

Examples:
Since: 3.13.0