xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL)
}
function draw() {
background(color(255, 255, 255))
rotateY(frameCount * -0.025)
directionalLight(color(255, 255, 255), 0, 0, -1)
pointLight(color(168, 0, 0), 0, 0, 1000)
box(10, 1000, 10)
translate(0, 400, 0)
for (let i = 16; i--;) {
push()
translate(200, 0, 0)
box(550, 10, 50)
translate(250, 600, 0)
noStroke()
box(50, 1200, 50)
pop()
translate(0, -50, 0)
rotateY(PI / 16)
}
}