PImage curs; // Create the image object PImage hand; //Dragger = new Dragder( //purSq = void setup() { size(550, 400); //output = new writer("colors.txt"); curs = loadImage("pointer.gif"); // Load the image hand = loadImage("hand.gif"); background(255); noCursor(); frameRate(30); rectMode(CENTER); } void draw() { background(mouseX/2, mouseX/2, mouseX/2); //fill(100, mouseX/2, 100); //rect(135, 310, 20, 20); fill(100, mouseX/2, 100); rect(150, 325, 30, 30); fill(100, mouseX/2, 100); rect(400, 325, 20, 20); fill(100, mouseX/2, 100); rect(275, 350, 250, 50); fill(mouseX/2, 100, mouseX/2); rect(375, 175, 100, 100); fill(mouseX/3, mouseX/2, 200); rect(150, 200, 50, 50); // Transforms accumulate. // Notice how this rect moves twice // as fast as the other, but it has // the same parameter for the x-axis value translate(width-mouseX, height-mouseY); //fill(255); image(curs, 0, 0); //rect(0, 0, 10, 10); }