Answer the question
In order to leave comments, you need to log in
How to properly redraw the canvas when the window is resized?
There is an animated grid of dots .
When resizing a window, the canvas does not shrink to the size of the window, but simply shrinks, as a result of which the grid is distorted and the cursor position is incorrectly registered.
How can this be fixed?
Add. offhand question - how to change canvas background color to completely transparent?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question