Page 50 OpenGL Super Bible! Table 3-3 Some (Web server certificate)

Page 50 OpenGL Super Bible! Table 3-3 Some common composite colors Composite Color Red Component Green Component Blue Component Black 0.0 0.0 0.0 Red 1.0 0.0 0.0 Green 0.0 1.0 0.0 Yellow 1.0 1.0 0.0 Blue 0.0 0.0 1.0 Magenta 1.0 0.0 1.0 Cyan 0.0 1.0 1.0 Dark gray 0.25 0.25 0.25 Light gray 0.75 0.75 0.75 Brown 0.60 0.40 0.12 Pumpkin orange 0.98 0.625 0.12 Pastel pink 0.98 .04 0.7 Barney purple 0.60 0.40 0.70 White 1.0 1.0 1.0 The last argument to glClearColor() is the alpha component. The alpha component is used for blending and special effects such as translucence. Translucence refers to an object s ability to allow light to pass through it. Suppose you are representing a piece of red stained glass, but a blue light is shining behind it. The blue light will affect the appearance of the red in the glass (blue + red = purple). You can use the alpha component value to make a blue color that is semitransparent; so it works like a sheet of water an object behind it shows through. There is more to this type of effect than the alpha value, and in Chapter 16 we will write an example program that demonstrates it; until then you should leave this value as 1.
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp web hosting services

Leave a Reply