Commit Graph

5 Commits (c35a1dd79fd59e37999a1a64b5faa7018f95e9dd)

Author SHA1 Message Date
Florian Dehau 140db9b2e2 refactor(canvas): update shape drawing strategy
* Update the `Shape` trait. Instead of returning an iterator of point, all
shapes are now aware of the surface they will be drawn to through a `Painter`.
In order to draw themselves, they paint points of the "braille grid".
* Rewrite how lines are drawn using a common line drawing algorithm (Bresenham).
5 years ago
Joe Ardent 86f681a007 Silence check warnings about [lack of] use of 'dyn' for boxed trait objects. 5 years ago
Sven-Hendrik Haase a78fa73b34 Add new shape: Rectangle 6 years ago
Florian Dehau a5b632aeb0 Cleanup API 8 years ago
Florian Dehau 654be037be Redefine canvas widget and add shapes
* Give the canvas widget a proper modules and define a standard way to
draw to it (Shape trait)
* Add Points, Line, Rectangle and Map shapes
8 years ago