Time flies like an arrow Fruit flies like a banana Concept 1.2: Specifying a Color ================================ Idea: ===== Concept1.5 in Chapter 1 let us change a object's color. Here we examine the details. Whenever an object is drawn it is drawn with the the currently specified coloring scheme. In general you should set the color first before drawing the object. To set a color, use the command glColor3f(). It takes three parameters, all of which are floating point numbers between 0.0 and 1.0. The parameters are in order red, green and blue components of the color. Here are eight commands and the colors they would specify: ===================================================== Command Set's Color To ===================================================== glColor3f(0.0, 0.0, 0.0) black glColor3f(1.0, 0.0, 0.0); red glColor3f(0.0, 1.0, 0.0) green glColor3f(1.0, 1.0, 0.0); yellow glColor3f(0.0, 0.0, 1.0) blue glColor3f(1.0, 0.0, 1.0); magenta glColor3f(0.0, 1.0, 1.0) cyan glColor3f(1.0, 1.0, 1.0); white ------------------------------------------------------