Hi,

I just started using pyglet after upgrading to Leopard OS X (before I
was using pygame). I'm trying to display (or animate) the values of a
numpy array (2D), but I haven't been able to figure out how.

With pygame, I iterated through my array and used
    pygame.surface.fill(color, (x, y, w, h))
to fill squares (with dimensions `w` by `h`, at location `x`, `y`)
with a color corresponding to the value of my array. I could also have
used pygame.surfarray to directly display my array (after converting
from numpy to Numeric).

I haven't been able to figure out how to get something like this to
work in pyglet. I apologize if this is a stupid question. I've tried
searching the forums and looking through the documentation, but I
haven't found anything similar.

Thanks for your help,
-Tony
--~--~---------~--~----~------------~-------~--~----~
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