RomanBase / hand_signature

A Flutter plugin providing signature pad for drawing smooth signatures.
https://pub.dev/packages/hand_signature
MIT License
108 stars 25 forks source link

line stroke smoothing #1

Closed musahinist closed 4 years ago

musahinist commented 4 years ago

Thank you for doing a great job. I have a request can you apply the stroke smoothing algorithm to SignatureDrawType.line

RomanBase commented 4 years ago

Hi, from now SignatureDrawType.line using same smoothing algorithm as 'shape' and 'arc' draw types.

You can play with 'threshold' and 'smoothRatio' params of 'HandSignatureControl ' to create more smooth or more accurate line.

Also there is a plan to test/add another algorithms, but this needs some time. You can of course make own algorithm and contribute your solution, thanks.