NikxDa 2 hours ago

An alternative that works very well for signatures too is Perfect Freehand (by the guy behind TLDRaw)

https://perfect-freehand-example.vercel.app/

  • mgaunard 2 hours ago

    That looks much better indeed, wasn't able to write anything with the OP's library.

  • lionkor 2 hours ago

    Is it allowed to modify the signature someone puts digitally on a document? Because that's what this does. Is that not an issue?

    • stavros 2 hours ago

      That's also what a pen does, but we haven't banned pens. Don't forge signatures, it's illegal.

    • arcticbull 23 minutes ago

      Have you met Preview's Tools > Annotate > Signature?

      If you're concerned about people modifying a document after you share it out, consider using a digital signature or a hash.

    • heeton an hour ago

      What makes you say the library is modifying the signature? (It’s not)

gdubs 4 days ago

This 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.

  • chii 4 hours ago

    > this kind of resistance in a UI it can be confusing

    it's actually intuitive because it mimics a real life physical dragging of an object by a rope, which most people have a feel for. Skeuomorphism can be quite intuitive imho.

    • justlikereddit 3 hours ago

      Try drawing your signature with it and see how intuitive it feels.

      • heeton an hour ago

        It’s not a tool for signatures. It’s also hard to sign documents with a paint roller.

        But this UI is much better at, e.g. drawing a smooth, symmetrical heart symbol, with a crisp turn.

        Different UI for different tasks, and it’s very cool to see something that intuitively lets you control something that is normally hidden under your finger.

      • danielheath 3 hours ago

        That'd be an amazing phishing attempt...

      • Bengalilol 3 hours ago

        Lazy radius: 9

        Friction: 0.04

        Brush radius: 13

        -> clear

        -> draw your signature

        • bowsamic 3 hours ago

          You’ve basically turned down the smoothing features

  • ahoka 2 hours ago

    This a very nice web implementation of a feature that exists since probably forever in most graphics software.

    • rerdavies 34 minutes ago

      I don't think I've ever seen this feature ever before (keeping in mind that the purpose of the tool is to draw smooth lines, and there would probably be another tool for drawing signatures). It's quite brilliant!

      • dtn 12 minutes ago

        Lazy Nezumi has been around since 2009. Stabilisers,etc. are a lot more prominent in the digital art community.

rebuilder 35 minutes ago

This is very nice, not just for finger/mouse painting! I tried it on my Cintiq and it was actually a lot better for me than brush stabilization usually is - I think the logic is the same as seen in e.g. Krita, but the visualization of the cursor and where the paint will appear is very helpful. Usually painting software doesn't have such an indicator of where the actual stroke will be placed and when it will move.

moritonal an hour ago

I believe a logic similar to this was used to enact the "Gestures" system in Black and White 1. Breaking down the mouse-movements into vectors following a guide-point. (https://blackandwhite.fandom.com/wiki/Gesture).

  • batperson 34 minutes ago

    Damn, what a flashback. I forgot about that game, it was quite something for its time. I remember the gesture spell casting system not working very consistently, but it was still a ton of fun.

zastai0day 3 hours ago

Wow, this is amazing! I see you've been building this on GitHub for 7 years - that's truly impressive dedication. What keeps you motivated to stick with this product for so long?

  • heeton an hour ago

    Not to speak for OP, and this library is very cool, but:

    It’s ~20 commits done in two batches. 2018 for the initial release then some more work on it in 2023.

    Zastai: you could have that kind of progress on any lib you wish to release, and it’s a nice feeling to have something out in the wild.

edflsafoiewq 4 hours ago

I think this is the same as the brush stabilizer in Krita.

  • baxuz 3 hours ago

    Possibly in tldraw as well, but that one was also velocity based

jeremyscanvic 21 minutes ago

Neat! This is known as a stabilizer in the digital art community.

karpour 33 minutes ago

Great project, I had some fun playing around :)

keepamovin 2 hours ago

This is really cool and reminded me of drawing as a kid. Thank you!

test1235 2 hours ago

OT, but I love the author's retro homepage. Just seeing that made me smile this morning