Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolate points on the input plane #6

Open
vprcic opened this issue Mar 15, 2021 · 1 comment
Open

Interpolate points on the input plane #6

vprcic opened this issue Mar 15, 2021 · 1 comment

Comments

@vprcic
Copy link

vprcic commented Mar 15, 2021

Moving the mouse quickly results in a low number of input points. This in turn reduces the number of output points and since it seems the output values are interpolated with a straight line, bad looking mappings are easily produced. Better mappings would be produced if the line in the input plane is interpolated with multiple points and all those points are then mapped to the output plane.

The attached image shows what I'm talking about. The red line is produced by quickly dragging the mouse, and the green line is when moving slowly. I'm saying the mapper should automatically work in such a way so that the output of both of these is of the same "quality".

image

@tsunyinlam
Copy link

tsunyinlam commented Nov 22, 2023

I fixed this in my fork

The idea was to have the addClick function call itself to add the mid points if the points were too far apart, provided that the point wasn't drawn due to mousestart (so it doesn't interpolate between seperate lines)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants