-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Expose Geometry2D.bresenham_line()
method
#74714
Conversation
You could also update the InputEventMouseMotion description, which suggests "If you use InputEventMouseMotion to draw lines, consider implementing Bresenham's line algorithm as well to avoid visible gaps in lines if the user is moving the mouse quickly." |
f5a33a8
to
658959d
Compare
658959d
to
d477098
Compare
d477098
to
08e8f5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works as expected. Should be good to merge after applying the suggestion.
Testing project: test_pr_74714.zip
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
08e8f5a
to
9f0ae21
Compare
Thanks! |
This method can be useful in user code.