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

Expose Geometry2D.bresenham_line() method #74714

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

dalexeev
Copy link
Member

@dalexeev dalexeev commented Mar 10, 2023

This method can be useful in user code.

@MewPurPur
Copy link
Contributor

MewPurPur commented Apr 27, 2023

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."

@dalexeev dalexeev force-pushed the expose-bresenham-line branch from f5a33a8 to 658959d Compare April 28, 2023 13:42
@YuriSizov YuriSizov modified the milestones: 4.1, 4.2 Jun 14, 2023
@AThousandShips AThousandShips modified the milestones: 4.2, 4.3 Oct 26, 2023
@dalexeev dalexeev force-pushed the expose-bresenham-line branch from 658959d to d477098 Compare February 22, 2024 08:56
@dalexeev dalexeev modified the milestones: 4.3, 4.4 May 23, 2024
@dalexeev dalexeev force-pushed the expose-bresenham-line branch from d477098 to 08e8f5a Compare October 21, 2024 05:19
Copy link
Member

@Calinou Calinou left a 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>
@dalexeev dalexeev force-pushed the expose-bresenham-line branch from 08e8f5a to 9f0ae21 Compare October 25, 2024 07:28
@Repiteo Repiteo merged commit 02088ab into godotengine:master Oct 25, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 25, 2024

Thanks!

@dalexeev dalexeev deleted the expose-bresenham-line branch October 25, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants