Instead of rendering basic shapes directly to the canvas, it would be nice to instead have an API to draw shapes with in a fluent manner:
rectangle(x, y, w, h).filled().radius(5).draw()
circle(x, y, w).filled().draw()
line(x1, y1, x2, y2).width(2).draw()
Possible methods
filled()
radius()
width()
color()
draw()
Instead of rendering basic shapes directly to the canvas, it would be nice to instead have an API to draw shapes with in a fluent manner:
Possible methods
filled()radius()width()color()draw()