Skip to content

Commit

Permalink
graphics: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wertzui123 committed Nov 23, 2024
1 parent d89ea9a commit d6535fa
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions stdlib/graphics/Canvas.aspl
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion stdlib/graphics/PrimitiveChunkedCanvas.aspl
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit d6535fa

Please sign in to comment.