/* Jeremy Owen Turner# 200024742. Assignment A1-14 - Draw a visual element that moves in relation to the mouse, but with a different relation when the mouse is pressed. */ void setup() { background(3,252,92); size(300,300); } int value = 0; void draw() { background(3,252,92); ellipse(value,66,88,mouseY); fill(179,14,198); } void mousePressed() { if(value==0) { value = 252; } else { value = 0;} }