/*Drew Cogbill Image 3.3 [computation08]*/ int x = 0; int y = 0; void setup() { size(400,400); smooth(); } void draw() { line (x, y, x+10, y); if ((x > 400) || (x < 0)) { x = 0; y += 10; } if ((y > 400) || (y < 0)) { x = 50; y = 10; } if ((keyPressed == true) && (key == '1')) { x += 5; } else if ((keyPressed == true) && (key == '2')) { x += 10; } else if ((keyPressed == true) && (key == '3')) { x -= 20; } else if ((keyPressed == true) && (key == '4')) { x += 40; } else if ((keyPressed == true) && (key == '5')) { y += 1; } else if ((keyPressed == true) && (key == '6')) { y += 2; } else if ((keyPressed == true) && (key == '7')) { y -= 1; } else if ((keyPressed == true) && (key == '8')) { y += 4; x += 4; } else if ((keyPressed == true) && (key == '9')) { y += 8; x += 1; } else if ((keyPressed == true) && (key == '0')) { background(0); stroke(255); } else if ((keyPressed == true) && (key == 'b')) { for (int i = 1; i < 5; i++) { int x = int(random(0, 340)); int y = int(random(0, 340)); PImage cutout = get(x, y, 60, 60); for (int j = 1; j < 10; j++) { int setx = int(random(0, 350)); int sety = int(random(0, 350)); set(setx, sety, cutout); } } } }