Log scaling and color clipping (in a sense)

This commit is contained in:
Steven Robertson
2011-05-02 16:19:55 +00:00
parent b710de4865
commit cd803cb3af
3 changed files with 87 additions and 6 deletions

View File

@ -48,7 +48,7 @@ def main(args):
if '-g' not in args:
return
imgbuf = (accum * 255).astype(np.uint8)
imgbuf = (np.minimum(accum * 255, 255)).astype(np.uint8)
window = pyglet.window.Window(1600, 900)
image = pyglet.image.ImageData(512, 512, 'RGBA', imgbuf.tostring())