xxxxxxxxxx
let posx, posxy,raio, cor, ang, inc=0;
function setup() {
createCanvas(500, 500,WEBGL);
background(215);
}
function draw() {colorMode(RGB);
noStroke();
fill(215,1);
rect(width/2*-1,height/2*-1,width,height);
ang+=TWO_PI/1000;
raio=1+noise(millis()*0.001)*width/4;
posx=0+raio*sin(millis()/600)*1.3;
posy=0+raio*cos(millis()/600)*1.5;
noFill();
colorMode(HSB);
cor=map(raio,5,width/10,40,195);
stroke(cor,250,200);
push();
rotate(PI/4);
push();
translate(posx,posy);
rotateY(PI/70*posx);
ellipse(0,0, raio,raio);
pop();
stroke(cor,250,200);
push();
translate(posy,posx);
rotateY(PI/70*posx);
ellipse(0,0, raio,raio);
pop();
pop();
}