On Wed, Mar 26, 2008 at 1:37 PM, Lucio Torre <[EMAIL PROTECTED]> wrote:
>
>  hello,
>
>  i was talking the other day about why pyglet chose to have colors in
>  the 0-255 range, and some questions remained in my mind. i know a
>  choice must be made, but given that opengl uses 0-1 and that using 0-1
>  is easier on the math, why chose 0-255? is there any other module that
>  uses 0-255?

Where does pyglet use 0-255 in colors?  I've only used the OpenGL
stuff for setting colors so far...

To answer your last question, all 24bit RGB displays (8 bits each for
R, G, and B) use 0-255.  2^8 = 256, after all.  So correspondingly,
most of the color system's I've ever encountered have used 0-255 for
rgb values.  OpenGL's the first notable exception that I've run into.

~ Nathan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to