xxxxxxxxxx
36
var y;
var x;
count = 0;
function setup() {
createCanvas(400, 400);
background(220);
y = height/2;
x = width/2;
frameRate(33);
}
function draw() {
background(196, 245, 204);
noStroke();
fill(255,100,100,255);
ellipse(x, y, 100, 100);
count+=1;
y = (height/2) + (sin(count/10) * 150);
x = (width/2) + (cos(count/11) * 150);
fill(255,255,100,255);
ellipse(x, y, 100, 100);
fill(234, 196, 245, 255);
ellipse(y, x, 25, 25);
count+=1;
y = (height/2) + (sin(count/10) * 150);
x = (width/2) + (cos(count/11) * 150);
fill(250, 187, 110,255);
ellipse(x, y, 75, 75);
}