xxxxxxxxxx
22
let moon = ['🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘'];
let index = 0;
function setup() {
createCanvas(400, 400);
textSize(80);
textAlign(CENTER, CENTER);
frameRate(5);
}
function draw() {
background(0);
text(moon[index], width / 2, height / 2);
if (index == moon.length - 1) {
index = 0;
} else {
index++;
}
}