dulnan / lazy-brush

Smooth drawing with mouse, finger or other pointing device
https://lazybrush.dulnan.net/
MIT License
791 stars 24 forks source link

question #4

Closed scratchoo closed 9 months ago

scratchoo commented 9 months ago

Hi

thank you for this library, I tried other methods to make smooth paths but the result I get from your method is awesome, I have a question though if you don't mind explain it a bit:

In the lazyPoint file there is a line where you are rotating the angle like this:

// Rotate the angle based on the browser coordinate system ([0,0] in the top left)
const angleRotated = angle + Math.PI / 2

I am kind of confused why you did that?