loadingAnimation.pde
String[] spin = {"/", "|", "\\", "-"};
int interval = 6;
void setup() {
size(800, 450);
pixelDensity(1);
textAlign(CENTER, CENTER);
textSize(16);
textFont(createFont("Menlo", 16));
}
void draw() {
background(0);
scale(2,1);
int idx = (frameCount / interval) % spin.length;
text(spin[idx], 380, 400);
text("Loading...", 325, 400);
}
