Answer the question
In order to leave comments, you need to log in
How to resize canvas?
How can I change the resolution (size) of the canvas, not externally, but internally?
Let's say there is a canvas with a resolution of 1280 * 800, it must be reduced to 640 * 400, but only so that it is not cut off.
I probably didn't explain well. Have questions - ask
Answer the question
In order to leave comments, you need to log in
Those. If I understand correctly, there should be a decrease in everything that was on the canvas? Is there another canvas or do I need to reduce it to the original one?
UPD: I tried it on my old graphics labs, you can just do:
draw_canvas.style.width = "500px"
draw_canvas.style.height = "500px"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question