We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was worry about the value of pos.distance when the finger is outside of the circle. Mostly because I use it for saturation in my colour picker.
So I added some print debug: print(pos.x,pos.y,pos.distance)
print(pos.x,pos.y,pos.distance)
And I get "1 1 1" as one of the possible value. Obviously distance is not equal to sqrt(x^2+y^2)
I believe the documentation should be updated on this topic. Anything above 1.0 seems to be rounded to 1.0.
The text was updated successfully, but these errors were encountered:
The formula is really simple, its the hypot of x,y - it is however, as you have said clamped to 1 - this being the radius of the dot.
https://github.com/martinohanlon/BlueDot/blob/master/bluedot/dot.py#L64
It was originally not clamped, but a number of people raised issues that it was confusing to have a distance > 1 returned.
Sorry, something went wrong.
No branches or pull requests
I was worry about the value of pos.distance when the finger is outside of the circle.
Mostly because I use it for saturation in my colour picker.
So I added some print debug:
print(pos.x,pos.y,pos.distance)
And I get "1 1 1" as one of the possible value.
Obviously distance is not equal to sqrt(x^2+y^2)
I believe the documentation should be updated on this topic.
Anything above 1.0 seems to be rounded to 1.0.
The text was updated successfully, but these errors were encountered: