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.
percent red (between 0.0 and 1.0)
percent green (between 0.0 and 1.0)
percent blue (between 0.0 and 1.0)
A constant referring to the color black RGB(0, 0, 0)
A constant referring to the color white RGB(1, 1, 1)
Generates a string representation of the color that can be used in HTML and SVG style attributes.
Generated using TypeDoc