godot
godot copied to clipboard
Expose `Geometry2D.bresenham_line()` method
This method can be useful in user code.
- Closes https://github.com/godotengine/godot-proposals/discussions/11004.
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."
Thanks!