p5js01-02サンプルを動かしてみよう

博物館に飾ってきた(嘘)

function setup() {
  createCanvas(windowWidth, windowHeight, WEBGL);
}
function draw() {
  background(25);
  for (var y = 123; y <= 914; y = y + 5020) {
    for (var x = 102; x <= 1000; x = x + 600) {
      noFill();
      stroke(150, 255, 255);
      rotateX(frameCount * 0.01);
      rotateY(frameCount * 0.01);
      box(90, 300, 2200);
    }
  }
}

コメントする