//global variables used float r=random(255); float g=random(255); float b=random(255); int x=mouseX; int y=mouseY; void setup(){ size(1200,800); background(0); frameRate(15);//how many times program runs through draw in a second smooth(); } void draw() { stroke(r,g,b, 127); fill(0,0,255); line(0,0,mouseX,mouseY); line(width,0,mouseX,mouseY); if(mouseX < width/2){ ellipse(mouseX,mouseY,10,10); } else{ rect(mouseX,mouseY,10,10); } noFill(); curve(100, 100, 340, 400, 400, 600, mouseX, 620); }