// Dear Tessa // Thank you for the improvement idea for the skecthing program // Try it out now. Let me know if you like it. // Instructions for a PC - I don't know how the mouse workd on a Mac // Press and hold the LEFT mouse button to draw // Click the rigth mouse button to clear the window boolean Draw = true; void setup() { size(255,255); background(0); stroke(0,0,0); strokeWeight(4); frameRate(30); } int R = 0; int G = 0; int B = 0; void draw() { } void mouseDragged() { if( Draw == true ) { R = mouseX; G = mouseY; B = mouseX+mouseY; if(B>255) B=255; print("R"+R+" G"+G+" B"+B+"\n"); stroke(R,G,B); line(pmouseX,pmouseY,mouseX,mouseY); } } void mousePressed() { if (mouseButton == RIGHT) { background(0); Draw = false; } else Draw = true; }