canvas.width = 300; // or, if you only have the context ctx.canvas.width = 300;
int width = 500; int hight = 500; void settings(){ size(width, hight); }