//Initial variables for the whole sketch
//Defines a list of colors called 'colorList' with 3 colors
color[] colorList = {color(255,255,0,70),color(200,0,125,70),color(0,100,255,70)};
//Defines 3 numbers (x and y for the circle coordinates and r for its radius)
float x,y,r;
//Initial conditions
void setup(){
//Defines the size of the window
size(displayWidth,displayHeight);
//Defines the background color
background(255);
//Defines the initial value of x
x=width/2;
//Defines the initial value of y
y=height/2;
//Defines the initial size of the radius
r=50;
//Defines a high frameRate (the more frequent it is, the more fluid the sketch will be)
frameRate(60);
//Sets the initial position of the mouse otherwise we have (0,0)
mouseX=width/2;
mouseY=height/2;
}
//Defines what the program does with each reading of the sketch (here 60 times per second)
void draw(){
//Defines a rondom color picked from the list 'colorList' (we get the length of the list, that is, the number of elements inside)
color randomColor = colorList[(int)random(colorList.length)];
//Defines the filling with the random color picked
fill(randomColor);
//Defines that there is no stroke
noStroke();
//Draws a circle
ellipse(x, y, r, r);
//Establishes a condition: if x is less than the horizontal coordinate of the mouse...
if(x