# cat.py
from Processing import *

img = loadImage("cat.jpg")
w, h = img.width(), img.height()
window(w, h)
noStroke()
ellipseMode(CENTER)

# Cover with random shapes
img.loadPixels()
for i in xrange(30000):
    # Add a random colored glyphs to recreate the image
    x = int(random(w))
    y = int(random(h))
    c = img.getPixel(x, y)
    fill(c)
    text("C", x, y)
    #ellipse(x, y, 7, 7)
