Add additional overload for draw_circle

This commit is contained in:
Alex Clink 2021-12-23 22:26:34 -05:00
parent c8edef4db3
commit 57ce71998d

View file

@ -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)