// 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 }