Responding Nathan,
pyglet 1.1 uses 0-255 colors for instance in the new text module (like
text.Label)
I also prefer reading 0-1 colors so I am still using 0-1 and using a
conversion function:
def to_rgb(a_gl_color):
return tuple([int(x * 255) for x in a_gl_color])
Maybe thats not a good idea, since it involves 2 conversions, since
pyglet will probably have to convert it back to float for OpenGL to
draw it right?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---