Expand description
A Canvas
and a collection of Shape
s.
The Canvas
is a blank space on which you can draw anything manually or use one of the
predefined Shape
s.
The available shapes are:
Circle
: A basic circleLine
: A line between two pointsMap
: A world mapPoints
: A scatter of pointsRectangle
: A basic rectangle
You can also implement your own custom Shape
s.
Structs§
- The Canvas widget provides a means to draw shapes (Lines, Rectangles, Circles, etc.) on a grid.
- A circle with a given center and radius and with a given color
- Holds the state of the
Canvas
when painting to it. - Label to draw some text on the canvas
- A line from
(x1, y1)
to(x2, y2)
with the given color - A world map
- Painter is an abstraction over the
Context
that allows to draw shapes on the grid. - A group of points with a given color
- A rectangle to draw on a
Canvas
Enums§
- Defines how many points are going to be used to draw a
Map
.
Traits§
- Something that can be drawn on a
Canvas
.