// nick pagee PS2 Question 3 // added lines to all the brush statements, then reversed code to have each colour coming from different direction //DRAWING TOOL // ******* Instructions ******* // Press and hold mouse to draw lines //RED // to draw red, press 'r' and DRAG mouse // to draw BIG red, press 'R' and DRAG mouse // to draw Darker red, press 'r' or 'R' and CLICK & DRAG mouse //GREEN // to draw green, press 'g' and DRAG mouse // to draw BIG green, press 'G' and DRAG mouse // to draw Darker green, press 'g' or 'G' and CLICK & DRAG mouse //BLUE // to draw blue, press 'b' and DRAG mouse // to draw BIG blue, press 'B' and DRAG mouse // to draw Darker blue, press 'b' or 'B' and CLICK & DRAG mouse //ERASER // to use the eraser tool press 'e' and DRAG mouse or CLICK AND DRAG // to erase the whole thing press 'E' void setup() { size(500,500); background(255); smooth(); frameRate(11); } void draw() { brush(); erase(); brushstroke += 1; bigBrushstroke = random(20,32); } //left main functions here, for others see tabs void mousePressed() { } void keyPressed() { }