xxxxxxxxxx
int counter;
void setup() { //setup function called initially, only once
size(1250, 850);
background(255); //set background white
colorMode(RGB); //set colors to Hue, Saturation, Brightness mode
counter = 50;
}
void draw() { //draw function loops
counter++;
noStroke();
fill(random(255),100,255,50);
if(mousePressed == true) {
ellipse(mouseX, mouseY, 20, 20);
rect(mouseX, mouseY,10,10);
}
else {
ellipse(width/2, height/2, 80*sin(counter), 80*sin(counter));
}
}