'Scaling' the canvas?

You can make your own functions for all the drawing stuff, you just need to multiply all the input by a certain factor, like this:

function myRect(x1,y1,x2,y2) {
  rect(x1*2,y1*2,x2*2,12*2);
}
1 Like