Color & Color Models
Color & Color Models
Color Basics
• Importance of color in computer graphics will continue to
increase as color monitors & color hard copy devices become
more & more popular.
• Color is a complex subject that draws on concepts & results
from physics,art & graphics design.
• Color of an objects depends not only on the object itself, but
also on the light source illuminating it, on the color of
surrounding area & on the human visual system.
Color Model
Color Model: It is an abstract mathematical model describing
the way color can be represented as tuple of numbers, typically
it is three or four.
Yellow (110)
White (111)
Black (000)
Magenta (101)
CMY COLOR MODEL
In this model Cyan , magenta and yellow colors
are used as (Gamut) primary color.
3) Values V varies from 0 at the apex and 1 at the top of the hexcon.
The apex represents the black. At the top of the hex cone colors
have the maximum intensity. When we have v=1 & s=1 we have
the pure hue.
Adding the black decreases the setting for
v ,while s is held constant.
e.g: To get a dark blue , v could be set at 0.4,
s=1 & h=240.
1) HUE:
• It has the same meaning as in the HSV model.It specifies
3) Saturation:
• Saturation parameter S again specifies relative
purity of the color .This parameter varies from 0-1, and
pure hues are those for which S= 1 and L=0.5.
• As S decreases the hue are said to be less pure.
• At S=0 we have Gray scale
HLS COLOR Model
YIQ Color Model
• Y : Luminance (Brightness)
• I : Inphase
• Q: Qudrature.
• If a color table has 256 color entries then the table can show
any of the 256 of 16,777,216 possible colors.
Color table
• Each entry in the table is 24 bit specifying one color.The
colors specified in the color table are available for selection
color.
• The colors in the color table are referred by the color index.
Color Mixing
Two or more color can be added together to produce a new color . There are
two types of color mixing
If a white light will pass through a yellow filter the yellow filter
absorb blue and transmit red & green , therefore yellow can be
considered as B Filter.