class Color
A Color object is used to represent a color for drawing on a Canvas. Color objects are immutable.
Constructor functions
- rgb(red, green, blue)
- Constructs a Color instance from components in the RGB color space.
Each component should be in the range 0.0 to 1.0.
Properties
- red
- green
- blue
- Read-only. Components in the RGB color space, in the range
0.0 to 1.0.