// Dartmouth CS 2, Winter 2009, Chris Bailey-Kellogg // Notes 17 | Sketch 6 PImage grn; int magD=10; // diameter of magnifying rectangle int rectSz=8; // how big the magnified pixels are void setup() { size(800,463); // size of green grn = loadImage("green.jpg"); noStroke(); rectMode(CENTER); } void draw() { background(grn); // magnify rectangle from mouse-magD to mouse+magD for (int y=-magD; y