xxxxxxxxxx
37
function setup() {
createCanvas(windowWidth, windowHeight);
angleMode(DEGREES);
iniRadius = width<height? width-30 : height-30;
}
function draw() {
background('#b3fffe');
translate(width/2, height/2);
noStroke();
radius = iniRadius;
while(radius>10) {
rotate(180-frameCount/2);
yinYang(radius);
radius*=0.7;
}
resetMatrix();
strokeWeight(1);
stroke(100);
fill(100);
textFont('Nunito', 30);
text("@URBANOXYGEN_", 20, height-20);
}
function yinYang(r) {
fill(0);
arc(0, 0, r, r, 0, 180);
fill(255);
arc(0, 0, r, r, 180, 0);
fill(0);
ellipse(r/4, 0, r/2);
fill(255);
ellipse(-r/4, 0, r/2);
}