Sunday, May 24, 2009

Colors

A large percentage of the visible spectrum can be represented by mixing red, green, and blue colored light in various proportions and intensities. RGB Color model is used in OpenGL and DirectX. A color value is an (Red, Green, Blue) triplet. The values can range from 0.0 (none) to 1.0 (full intensity). An intuitive color model is HSB. Hue is the color reflected from or transmitted through an object. Saturation 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). Brightness is the relative lightness or darkness of the color, usually measured as a percentage from 0% (black) to 100% (white).