1# this works but it takes FOREVER
2# 50 by 50 square going from black to white
3for i in range(50):
4 for j in range(50):
5 color = int(2.56 * (i + j))
6 pyglet.graphics.draw(1, pyglet.gl.GL_POINTS,
7 ('v2i', (i, j)),
8 ('c3B', (color, color, color))
9 )
10