//by Colby Parsons //made initially at a workshop by Paul Catanese int outBoundary; int fps; int fpsChange; int thick; int R; int G; int B; int A; void setup() { //size(600,800); fps=30; R=200; G=50; B=50; A=10; thick=0; fullScreen(); background(R,G,B); frameRate(fps); outBoundary = 200; } void draw() { if(mousePressed == true){ line(mouseX,mouseY,pmouseX,pmouseY); } if (thick < 1){ thick = 1; } //background(200,50,50,10); noStroke(); //fps= fps+fpsChange; frameRate(fps); fill(R,G,B,A); rect(0,0, width,height); stroke(random(0, 200)); strokeCap(SQUARE); strokeWeight(random(2+thick,20+thick)); } void keyPressed() { if (key == CODED) { if (keyCode == UP) { fps = fps+1; } else if (keyCode == DOWN) { fps = fps-1; } else if (keyCode == LEFT) { thick = thick-1; } else if (keyCode == RIGHT) { thick = thick+1; } } else { if(key == '1') { save("myimage.jpg"); } if(key == 'c') { background(R,G,B); } } if(key == 'a') { A = 100; } if(key == 's') { A = 10; } if(key == 'd') { A = 3; } }