ringAround
let a=0,b=0;
function setup(){
cnv=createCanvas(windowWidth,windowHeight)
background(20)
stroke(255)
noFill()
strokeWeight(0.05)
}
function draw(){
background(100,140,180)
t=frameCount/100
translate(width/2,height/2);
rotate(t/10)
for(let i=-9;i<=9;i++){
conchoid(a+i)
conchoid(a+i)
}
a=12*sin(t);
b=10*cos(t/100);
}
function conchoid(a){
beginShape();
for(let i=0;i<156;i++){
y=width/100*(1/cos(i)+a*sin(i)+b*cos(i*b))*tan(i);
x=width/100*(1/tan(i)+b*sin(i))*tan(i);
vertex(x,y)
}
endShape()
}