Constructor
new Paint(strokeColor, fillColor)
Creates a new paint object
Parameters:
Name | Type | Description |
---|---|---|
strokeColor | Color | | |
fillColor | Color | |
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:
Properties- Symbol
Name | Type | Description |
---|---|---|
Clear | Symbol | |
Paint | Symbol | |
Gradient | Symbol |
fillColor :Color|Gradient
The fill color
Type:
- Color |
Gradient
strokeColor :Color|Gradient
The stroke color
Type:
- Color |
Gradient