I think it would be much better to use some kind of Kalman filtering so you don't have the huge lag. You don't need to commit to permanent output immediately so it is possible to draw with zero lag and then smooth the output afterwards.
Lazy-brush – smooth drawing with mouse or finger
51–60 of 83 posts
Re: Lazy-brush – smooth drawing with mouse or finger
#52An alternative that works very well for signatures too is Perfect Freehand (by the guy behind TLDRaw) https://perfect-freehand-example.vercel.app/
Re: Lazy-brush – smooth drawing with mouse or finger
#53This is so satisfying. These types of experiments are something I really love about the open-web, and part of what bums me out about how most social networks tend to throttle links. The dragging behavior is so intuitive – it's funny because usually if you create this kind of resistance in a UI it can be confusing, but in this context it works so well.
Perfect freehand is the right way to solve this.
Re: Lazy-brush – smooth drawing with mouse or finger
#54Re: Lazy-brush – smooth drawing with mouse or finger
#55I think it would be much better to use some kind of Kalman filtering so you don't have the huge lag. You don't need to commit to permanent output immediately so it is possible to draw with zero lag and then smooth the output afterwards.
Re: Lazy-brush – smooth drawing with mouse or finger
#56An alternative that works very well for signatures too is Perfect Freehand (by the guy behind TLDRaw) https://perfect-freehand-example.vercel.app/
Re: Lazy-brush – smooth drawing with mouse or finger
#57Re: Lazy-brush – smooth drawing with mouse or finger
#58Check out drawmote from the same author, where this library is being used. https://drawmote.app/
And apparently without asking any permissions on the phone. What sorcery is this?
Re: Lazy-brush – smooth drawing with mouse or finger
#59OP's personal website deserves its own post! https://dulnan.net/ <3
Re: Lazy-brush – smooth drawing with mouse or finger
#60I think it would be much better to use some kind of Kalman filtering so you don't have the huge lag. You don't need to commit to permanent output immediately so it is possible to draw with zero lag and then smooth the output afterwards.
Kalman filtering is what's used in GPS navigation apps, is it not, to smooth out imperfections in the raw GPS signal?