Hello WebGPU

20260213

p5.js WebGPU
Generative Art learning

View Source Code

async function setup() {
  // await createCanvas(400, 400, WEBGPU);
  await createCanvas(windowWidth, windowHeight, WEBGPU);
}

function draw() {
  background(100);
  
  push();
  rotateY(millis() * 0.001);
  lights();
  box(200);
  pop();
}