:note

p5jsでcanvasサイズの可変

canvasサイズの可変

function setup() {
  createCanvas(windowWidth, windowHeight);
}

function draw() {
  background(0, 100, 200);
}

function windowResized() {
  resizeCanvas(windowWidth, windowHeight);
}

Beyond the canvas · processing/p5.js Wiki

 
comments powered by Disqus
back to top