Hacker News new | ask | show | jobs
by NikxDa 301 days ago
An alternative that works very well for signatures too is Perfect Freehand (by the guy behind TLDRaw)

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

4 comments

This is fantastic! Never in my life could I input my signature with a mouse, and have it come out this close to how it looks like the pen-and-paper version. Mindblowing, as it worked like so out of the box.
That looks much better indeed, wasn't able to write anything with the OP's library.
The OP's library gas settings if you scroll down. I found these values work well on my phone: 20, 0.05, 5
Using a trackball I couldn't get this to work noticeably better than just plain paintbrush input in MS Paint. Conversely the one from TFA took me a little more time to get the hang of but I got a lot better control with it.
Is it allowed to modify the signature someone puts digitally on a document? Because that's what this does. Is that not an issue?
That's also what a pen does, but we haven't banned pens. Don't forge signatures, it's illegal.
Stop, you are making too much sense. /s

(I honestly am baffled that things like this have to be said.)

Me too, but alas, they do :(
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.

I feel like if you're modifying the signature after they sign it and approve it - that could be a problem. As long as the modifications are applied in real-time (or with explicit user confirmation after modification), I think it is morally okay (and probably legally, but I'm not a lawyer).

You may find users who get mad if your settings are too aggressive though, and if they're unable to get a signature that they approve of.

What makes you say the library is modifying the signature? (It’s not)
Given it a bit of thought (as I was also puzzled), I think the comment was about the modification compared to a normal way of doing it. So if I would normally write a scribble with angular lines for a signature, and it might be consistent across different places, this brush could smooth it out and modify what it might be.