+ 1
Write on Canvas independent of it's size dimensions
When i write text on a canvas, it is dependent of the width and height. When i strech the canvas to the right, it affects the font. How can I avoid this?
1 Respuesta
+ 3
2 ways of setting dimensions in canvas and how they affect the looks, an awesome explanatory code by Kirk schafer
that's y we resize the canvas after defining it
i.e example
canvas.width = 400 ;
canvas.height = 600;
https://code.sololearn.com/WETCkRaPNVhy/?ref=app
more discussions on canvas here
https://www.sololearn.com/discuss/1104654/?ref=app