From a106a8f2cad9aa2c7dc2688e9ffb1fb7883c05d6 Mon Sep 17 00:00:00 2001 From: BrotherShort <129957860+BrotherShort@users.noreply.github.com> Date: Sun, 15 Dec 2024 02:14:12 +0800 Subject: [PATCH] Update DrawingAlgos.gd Fixed ellipse draw algos bug. --- src/Autoload/DrawingAlgos.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autoload/DrawingAlgos.gd b/src/Autoload/DrawingAlgos.gd index 97f2c0f83..efc438f52 100644 --- a/src/Autoload/DrawingAlgos.gd +++ b/src/Autoload/DrawingAlgos.gd @@ -127,7 +127,7 @@ func get_ellipse_points(pos: Vector2i, size: Vector2i) -> Array[Vector2i]: var y0 := pos.y var y1 := pos.y + (size.y - 1) var a := absi(x1 - x0) - var b := absi(y1 - x0) + var b := absi(y1 - y0) var b1 := b & 1 var dx := 4 * (1 - a) * b * b var dy := 4 * (b1 + 1) * a * a