(await visibility(),
p5iframe(`
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL);
}
function draw() {
background(100);
resetMatrix();
noStroke();
let deg = PI/180;
let ang = frameCount * deg/2;
let r = 2;
camera (r*cos(ang),-1,r*sin(ang),0,0,0,0,1,0);
perspective (PI/7, width/height, 0.01, 1000);
pointLight (200, 200, 200, 2, -2, 2);
pointLight (200, 200, 200, 0, -2, 0);
push();
for (let i=-5; i <= 5; i++) {
let x = i * 0.2;
for (let j=-5; j <= 5; j++) {
let z = j * 0.2;
pop(); push();
translate (x,0,z);
rotateX((ang%PI)*cos(ang)+i*deg*10);
rotateZ(ang+j*deg*5);
box (0.2,0.2,0.2)
}
}
pop();
}`))