xxxxxxxxxx
99
function setup() {
createCanvas(400, 400);
noStroke();
}
function draw() {
if (mouseIsPressed == true) {
cursor();
}
else {
noCursor();
}
let x = mouseX;
let y = mouseY;
let ix = width - mouseX; // Inverse X
let iy = height - mouseY; // Inverse Y
background(255);
fill(100,80,150,150);
ellipse(x, height/2, y, y);
fill(234,240,56,159);
ellipse(ix, height/2, iy, iy);
fill(100,80,150,150);
ellipse(x, height/4, y, y);
fill(234,240,56,159);
ellipse(ix, height/0.5, iy, iy);
fill(10,80,150,150);
ellipse(x, height/8, y, y);
fill(234,240,56,159);
ellipse(ix, height/2, iy, iy);
fill(10,8,90,100);
ellipse(x, height/6, y, y);
fill(234,240,56,159);
ellipse(ix, height/5, iy, iy);
fill(10,80,150,150);
ellipse(x, height/1, y, y);
fill(234,240,56,159);
ellipse(ix, height/2, iy, iy);
fill(10,100,9,100);
ellipse(x+200, height/2, y, y);
fill(234,240,56,159);
ellipse(ix, height/1, iy, iy);
ellipse(ix+100, height/3,iy+100,iy+100);
fill(99,90,30,100)
ellipse(x+200, height/1, y, y);
fill(10,100,9,100);
ellipse(x+200, height/4, y, y);
fill(100,10,90,160);
ellipse(x+200, height/10, y, y);
fill(100,30,110,170);
ellipse(x+200, height/3, y, y);
fill(100,8,150,150);
ellipse(x,height/5, y, y);
fill(234,240,56,159);
ellipse(ix, height/3, iy, iy);
fill(10,80,150,150);
ellipse(x, height/3, y, y);
fill(234,240,56,159);
ellipse(ix, height/6, iy, iy);
ellipse(ix+100, height/10,iy+100,iy+100);
ellipse(ix+100, height/4,iy+100,iy+100);
ellipse(ix+100, height/5,iy+100,iy+100);
fill(234,240,56,150);
ellipse(x-150, height/4, y-100, y-100);
fill(234,240,56,150);
ellipse(x-150, height/1, y-100, y-100);
fill(234,240,56,150);
ellipse(x-150, height/2, y-100, y-100);
fill(234,240,56,150);
ellipse(x-150, height/10, y-100, y-100);
fill(234,240,56,150);
ellipse(x-150, height/8, y-100, y-100);
fill(234,240,56,150);
ellipse(x-150, height/3, y-100, y-100);
}