godot icon indicating copy to clipboard operation
godot copied to clipboard

Expose `Geometry2D.bresenham_line()` method

Open dalexeev opened this issue 2 years ago • 1 comments

This method can be useful in user code.

  • Closes https://github.com/godotengine/godot-proposals/discussions/11004.

dalexeev avatar Mar 10 '23 12:03 dalexeev

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

MewPurPur avatar Apr 27 '23 20:04 MewPurPur

Thanks!

Repiteo avatar Oct 25 '24 18:10 Repiteo