Python Processing example crashes

Issue #121 resolved
Doug Blank created an issue

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)

  1. Log in to comment