void setup() { size(200,200); background(255,0,0); fill(0,123,255); stroke(255,255,255); } void draw() { //background(255,0,0); rect(30, 20, 100, 50); line(30, 20, 100, mouseY); point(30,mouseY); }