RGB

Started by
3 comments, last by manuelcc 22 years, 9 months ago
ok im pretty new at opengl programming, but im making a little test program but i want to be able to allow the user to enter a certian rgb color for the background of his choice, but when i make the clear color the rgb color that i entered it doesnt show up as the color i chose, for example: 55, 86, 93 is the color i entered but it doesnt show up as the dark green i chose, but in order to get that color to show up correctly i have to use: .02, .032, .035 is there a way to convert the two rgb colors or am i missing something? thanks in advance
Advertisement
Hi,
Try glColor3ub(55,86,93).
Hello from my world
yeah that does work but im trying to make make the clear color (glClearColor) the rgb value the user specifies, any idea on how to do that? thanks for the help btw
I think the clear color has to be a float you''ll have to divide you values by 255 to get the float i guess
----------------------------www.physicsforums.comwww.opengl.org
thanks that was exactly what i was looking for :D

This topic is closed to new replies.

Advertisement