访问在线编辑器
https://editor.p5js.org/

function setup() {
  createCanvas(800, 400);
  background(0);
}

function draw() {
  
  if (mouseIsPressed) {
    stroke(255);
    fill(255);
    ellipse(mouseX, mouseY, 40, 40);
  }
  
}

相关文章: