// Example 07-18 from "Getting Started with Processing" // by Reas & Fry. O'Reilly / Make 2010 void setup() { size(120, 120); } void draw() { pushMatrix(); translate(mouseX, mouseY); rect(0, 0, 30, 30); popMatrix(); translate(35, 10); rect(0, 0, 15, 15); }