Phaser API Documentation

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

Description:

Sets the fillStyle on the target context based on the given Shape.

Parameters:

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.

Since: 3.13.0