Need some colors...

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…


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?

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… :slight_smile:

Before drawing new shape(geometry) use this glcolor for more and give different color values.

For better understanding,
void Render()
/some code/
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

/some code/
I think this helps You