dulnan / lazy-brush

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

Does this have support for things like force changes? #2

Open sudofox opened 3 years ago

sudofox commented 3 years ago

My app has pressure sensitivity, so I'm struggling to see where I can integrate this. It seems like you can specify the radius when it's initially defined, but if I need to change the current radius, or have different ones per-stroke, I'm not sure how I would do that.

dulnan commented 3 years ago

You can call setRadius on the instance to change the radius.

I have actually never tried setting the radius dynamically, based on velocity or pressure etc! I‘m curious to know how this behaves and if it feels "right". Keep me updated :D