xxxxxxxxxx
29
function setup() {
createCanvas(innerWidth, innerHeight);
frameRate(60)
angleMode(DEGREES)
}
function draw() {
background(50, 50, 50);
translate(0, 0)
fill(255)
arc(frameCount, height/2, 50, 50, frameCount, frameCount+90, PIE)
fill(255, 102, 0)
arc(frameCount, height/2, 50, 50, frameCount + 90, frameCount+180, PIE)
fill(255)
arc(frameCount, height/2, 50, 50, frameCount + 180, frameCount+270, PIE)
fill(102, 255, 0)
arc(frameCount, height/2, 50, 50, frameCount + 270, frameCount+360, PIE)
}