Answer the question
In order to leave comments, you need to log in
How to fix a bug when I paint with a brush on sharp turns?
I have this code
And in the consequences, the question
is why to turn sour on sharp turns to carry away
And why when changing the size in can.width; and can.height;
The center of the brush goes somewhere away from the cursor
Can anyone help solve the problem?
Answer the question
In order to leave comments, you need to log in
here is an example for you to think about
https://codepen.io/anon/pen/vwOrKX
Because that lineJoin = "miter"
's how it works
And why when resizing in can.width; and can.height;
The center of the brush goes somewhere away from the cursor
canvas.width/canvas.clientWidth
to the example Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question