From 57ce71998d8aac075805190ca77b6d78d8bb13ad Mon Sep 17 00:00:00 2001 From: Alex Clink Date: Thu, 23 Dec 2021 22:26:34 -0500 Subject: [PATCH] Add additional overload for draw_circle --- src/game.cr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game.cr b/src/game.cr index 6e85283..e86b019 100644 --- a/src/game.cr +++ b/src/game.cr @@ -175,6 +175,10 @@ module PF draw_circle(c.x, c.y, r, pixel, surface) end + def draw_circle(c : Vector2, r : Int, pixel : Pixel = Pixel.new, surface = @screen) + draw_circle(c.x.to_i, c.y.to_i, r, pixel, surface) + end + def draw_triangle(p1 : Point, p2 : Point, p3 : Point, pixel : Pixel = Pixel.new, surface = @screen) draw_line(p1, p2, pixel, surface) draw_line(p2, p3, pixel, surface)