From d6535fa4fdcc91c7eaaf1ae118bc1531cba56ecf Mon Sep 17 00:00:00 2001 From: Wertzui123 <46199283+Wertzui123@users.noreply.github.com> Date: Sat, 23 Nov 2024 19:48:09 +0100 Subject: [PATCH] graphics: formatting --- stdlib/graphics/Canvas.aspl | 1 + stdlib/graphics/PrimitiveChunkedCanvas.aspl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/graphics/Canvas.aspl b/stdlib/graphics/Canvas.aspl index 06bd9cc..0b98a8b 100644 --- a/stdlib/graphics/Canvas.aspl +++ b/stdlib/graphics/Canvas.aspl @@ -62,6 +62,7 @@ class Canvas extends ICanvas{ method fillRectangle(Rectangle rectangle, Color color, bool blend = true){ implement("graphics.canvas.fill_rectangle", this.handle, int(Point(rectangle.position).x), int(Point(rectangle.position).y), int(Point(rectangle.position).x) + int(Size(rectangle.size).width), int(Point(rectangle.position).y) + int(Size(rectangle.size).height), color.a, color.r, color.g, color.b, blend) } + [public] method drawCircle(Ellipse circle, Color color, bool blend = true){ implement("graphics.canvas.draw_circle", this.handle, int(Point(circle.position).x), int(Point(circle.position).y), int(Size(circle.size).width), color.a, color.r, color.g, color.b, blend) diff --git a/stdlib/graphics/PrimitiveChunkedCanvas.aspl b/stdlib/graphics/PrimitiveChunkedCanvas.aspl index e50bb48..38041b9 100644 --- a/stdlib/graphics/PrimitiveChunkedCanvas.aspl +++ b/stdlib/graphics/PrimitiveChunkedCanvas.aspl @@ -68,7 +68,7 @@ class PrimitiveChunkedCanvas extends ICanvas{ method drawCircle(Ellipse circle, Color color, bool blend = true){ implement("graphics.canvas.primitive_chunked.draw_circle", this.handle, int(Point(circle.position).x), int(Point(circle.position).y), int(Size(circle.size).width), color.a, color.r, color.g, color.b, blend) } - + [public] method fillCircle(Ellipse circle, Color color, bool blend = true){ implement("graphics.canvas.primitive_chunked.fill_circle", this.handle, int(Point(circle.position).x), int(Point(circle.position).y), int(Size(circle.size).width), color.a, color.r, color.g, color.b, blend)