Answers for "we should set the size of the canvas from javascript. There is no html equivalent for that"

1

js set canvas size

canvas.width = 300;
// or, if you only have the context
ctx.canvas.width = 300;
Posted by: Guest on March-02-2021

Code answers related to "we should set the size of the canvas from javascript. There is no html equivalent for that"

Code answers related to "Javascript"

Browse Popular Code Answers by Language