Python Processing example crashes
Issue #121
resolved
This is found in Calico/modules/Processing/tests/008.py:
from Processing import *
window(500, 500)
# Create a new image
im = createImage(100, 100, ARGB)
# Modify its pixels
im.loadPixels()
for i in range(100):
im.setPixel(i, i, 255, 0, 0)
im.setPixel(100-i, i, 0, 255, 0)
im.updatePixels()
# Draw it to the window
image(im, 100, 100)
# Save it to a file - only "png" and "jpeg" are supported
im.save("test.jpeg", True)
Comments (3)
-
-
Does crash on Linux.
-
- changed status to resolved
This was a threading problem. Fixed in 6b1ed43
- Log in to comment
This doesn't crash for me on Mac.