Paint~ Paint

A paint object

Constructor

new Paint(strokeColor, fillColor)

Creates a new paint object
Parameters:
NameTypeDescription
strokeColorColor | Gradient
fillColorColor | Gradient
Example
// Create a new paint object with a red stroke and a blue fill
const paint = new Paint(Color.Red, Color.Blue);

Members

Mode :Symbol

Type:
  • Symbol
Properties
NameTypeDescription
ClearSymbol
PaintSymbol
GradientSymbol

fillColor :Color|Gradient

The fill color
Type:
  • Color | Gradient

strokeColor :Color|Gradient

The stroke color
Type:
  • Color | Gradient