// Load and display an image onscreen // The image file must be stored in the // "data" subdirectory of the Processing // sketch's folder PImage pic, pic2; void setup() { pic = loadImage("jesterdog.jpg"); pic2 = loadImage("clownfish.jpg"); size(600, 600, P3D); background(255); } void draw() { background(255); // scale(0.5); // rotate(radians(mouseX)); // rotateX(radians(mouseY)); // rotateY(radians(mouseX)); translate(150, 150); // Move origin 150px down and over // Display pic starting at (0, 0) on screen image(pic, -50, -50); image(pic2, 200, 200, 150, 150); // translate(-100, -100); // fill(255, 0, 0); // rect(0, 0, 25, 35); }