[line 47]
RGB Color representation used for advanced manipulation, such as setting alpha channel and/or calculating HSB values.
It is not necesary to use the Color class for every representable colors. Named colors are simple RGB contant values and can be used for creating Color objects. This is to avoid a large overhead by creating numerous unneeded objects (an object for every named color).
Return the brightness of the color Brightness is the relative lightness or darkness of the color, usually measured as a percentage from 0% (black) to 100% (white).
Hue is the color reflected from or transmitted through an object. It is measured as a location on the standard color wheel, expressed as a degree between 0° and 360°. In common use, hue is identified by the name of the color such as red, orange, or green.
Return the saturation of the color Saturation, sometimes called chroma, is the strength or purity of the color. Saturation represents the amount of gray in proportion to the hue, measured as a percentage from 0% (gray) to 100% (fully saturated). On the standard color wheel, saturation increases from the center to the edge.