gabm / Satty

Satty - Modern Screenshot Annotation. A tool inspired by Swappy and Flameshot.
Mozilla Public License 2.0
385 stars 18 forks source link

Input smoothing / post-processing #94

Open intelfx opened 5 days ago

intelfx commented 5 days ago

It would be nice if satty could implement mouse input post-processing (e.g. smoothing) similar to the way Windows snipping tool "prettifies" the mouse-drawn input.

Compare (deliberately sloppy) attempts to draw an ellipse with a laptop touchpad with Satty and with Windows 10 snipping tool (Win + Shift + S):

Satty: image

Windows 10 snipping tool: image


Note that this Windows 10 instance is running in a VM using host input, so there should be no difference due to e.g. touchpad drivers — the Windows app received exactly same input events as a Linux application would have in its place.

gabm commented 5 days ago

nice idea, i fully support this. Do you have any algorithmic reference for this?

If you want to work on that, I can give you a headstart!

intelfx commented 5 days ago

Do you have any algorithmic reference for this?

No, I do not, sadly, otherwise this would have been a PR instead of an issue :)

00-kat commented 4 days ago

Grabbing a bunch of points and drawing a spline through them might work. I don't know how it's actually done though, this is just a guess.