Defining the Basic Colors

[ LiB ]

Defining the Basic Colors

Here, you define the values of the basic colors. The basic colors are defined as unit values for each red, green, and blue component.

 const color3 color3::Black( 0.f,0.f,0.f ); const color3 color3::Gray( 0.5f,0.5f,0.5f ); const color3 color3::White( 1.f,1.f,1.f ); const color3 color3::Red( 1.f,0.f,0.f ); const color3 color3::Green( 0.f,1.f,0.f ); const color3 color3::Blue( 0.f,0.f,1.f );  const color3 color3::Magenta( 1.f,0.f,1.f ); const color3 color3::Cyan( 0.f,1.f,1.f ); const color3 color3::Yellow( 1.f,1.f,0.f ); 

[ LiB ]


Focus On Photon Mapping
Focus On Photon Mapping (Premier Press Game Development)
ISBN: 1592000088
EAN: 2147483647
Year: 2005
Pages: 128
Authors: Marlon John

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net