# Stupid question

It’s hot out today so I’m lazy. Don’t wanna search take your pick. Anyway anyone know the glColor3f(); for white?

Must have been just as lazy in school during science class…

glColor3f( Red, Blue, Green )

Red + Blue + Green = White

1, 1, 1

Originally posted by c0d3Junk3Y:
It’s hot out today so I’m lazy. Don’t wanna search take your pick. Anyway anyone know the glColor3f(); for white?

Sorry I didn’t specify background color.

wtf?

oh… you wanted white for the background colour. that’s not the same as white for the foreground colour, as you keenly observed. to convert any foreground colour into a background colour you just need to subtract 1.0 from the colour values. so, the background colour for white is 0.0, 0.0, 0.0 (1.0-1.0, 1.0-1.0, 1.0-1.0). beginners often stumble over this problem.

LOL We oft stumble over more than just that.

You can set the color in which to clear to.

// R, G, B, A
glClearColor (1.0, 1.0, 1.0, 1.0);

Originally posted by c0d3Junk3Y:
Sorry I didn’t specify background color.

No questions are stupid, when you don’t know you don’t know.
There are just hard questions and easier questions.

… or, my personal favourite:
http://www.thinkgeek.com/images/products/zoom/cluelessness.jpg

(not that I’m saying its applicable in this case, mind you)

Thanks john LOL. BTW love the pic.

Originally posted by john:
[b]wtf?

oh… you wanted white for the background colour. that’s not the same as white for the foreground colour, as you keenly observed. to convert any foreground colour into a background colour you just need to subtract 1.0 from the colour values. so, the background colour for white is 0.0, 0.0, 0.0 (1.0-1.0, 1.0-1.0, 1.0-1.0). beginners often stumble over this problem.[/b]

LOL! Nice response John.

In my country we say :
There are no stupid questions.

This phrase must have been invented by the most stupid and annoying person on this planet.

What do you say so?

Originally posted by Orzech:
What do you say so?

In Germany we have the same phrase.
I hate it.

Jan.

Aha.