View Full Version : Need some colors...
03-24-2008, 10:26 AM
Hey guys I'm new to this and I need an assortment of colors (in code, where to add the code would be fantastic also), any help would be great... thanks...
03-24-2008, 08:39 PM
Can you be a little clearer? What do you mean you need an assortment of colors? How do you want to use this assortment of colors?
03-27-2008, 11:54 PM
Hi thanks for the reply, I just wanted to change the colors of the shapes I've been "trying" to make... <a real noob...lol> This forums really helpful, i can make circles now... ^_^
03-28-2008, 12:59 AM
Before drawing new shape(geometry) use this glcolor for more http://www.opengl.org/sdk/docs/man/ and give different color values.
03-28-2008, 11:52 PM
For better understanding,
glColor3f(1.0, 0.0, 0.0); //Red color cube
glColor3f(0.0, 1.0, 0.0); //green color sphere
glutSolidSphere(2, 10, 10);
glColor3f(0.0, 0.0, 1.0); //Blue color Teapot
I think this helps You
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.