var rec;
function setup() {
var myCanvas = createCanvas(300, 300);
myCanvas.parent('myContainer');
rec = createSprite(width/2, height/2, 50, 50);
rec.shapeColor = color(255,255,255);
}
function draw() {
background(200,200,200);
drawSprites();
}
p5.js play & wordpress
コメントを残す