xxxxxxxxxx
38
let rot = 10;
let diamLarge;
let diamSmall;
function setup() {
createCanvas(windowWidth, windowHeight);
rectMode(CENTER);
diamLarge = height-100;
diamSmall = height/3;
}
function draw() {
background(20,3);
strokeWeight(0.5);
stroke(42);
translate(width/2,height/2);
rotate(rot);
fill(255,10)
circle(0, 0, diamLarge);
fill(255,5)
circle(0-50, 0, diamSmall);
circle(0+50, 0, diamSmall);
circle(0, 0-50, diamSmall);
circle(0, 0+50, diamSmall);
rot+=0.01;
diamSmall += sin(rot)*1.2;
diamLarge += sin(rot)*3;
stroke(55,100);
fill(100,1);
rect(0,0, 82-(sin(rot)*50), 82-(sin(rot)*50));
}