📜  如何在 p5js 中制作一个盒子 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:17.349000             🧑  作者: Mango

代码示例1
// you have to get a library known as p5js for this :)
function setup() {
    createCanvas(500,500,WEBGL);
}

function draw() {
 box(50); // you can write any size instead of 50 
}