Constructors
constructor
- new Color(red?: number, green?: number, blue?: number): Color
-
Parameters
-
Optional red: number
-
Optional green: number
-
Optional blue: number
Properties
Static BLACK
BLACK
: Color = new Color()
Static WHITE
WHITE
: Color = new Color(1, 1, 1)
Colors are represented by percents red, green, and blue.
These percentages are expressed as values between 0.0 and 1.0.
Black is red: 0, green: 0, blue: 0. White is red: 1, green: 1, blue: 1.
You can use Color objects to fill shapes and create Strokes (outlines) of different colors.