Expand description
Draw shapes, images, and text on the screen.
Structs§
- Angle
- An angle between two vectors.
- Canvas
- Canvas is an
Image
that can be drawn upon. - Image
- A loaded image file.
- Line
Style - The same as Style but without a fill color (only stroke color and width).
- Point
- A point on the screen.
- RGB
- The RGB value of a color in the palette.
- Size
- Size of a bounding box for a shape.
- Style
- Style of a shape.
- SubImage
- A subregion of an image. Constructed using
Image::sub
.
Enums§
- Color
- A pointer to a color in the color palette.
Constants§
Functions§
- clear_
screen - Fill the whole frame with the given color.
- draw_
arc - Draw an arc.
- draw_
circle - Draw a circle with the given diameter.
- draw_
ellipse - Draw an ellipse (oval).
- draw_
image - Render an image using the given colors.
- draw_
line - Draw a straight line from point a to point b.
- draw_
point - Set a single point (1 pixel is scaling is 1) on the frame.
- draw_qr
- Render a QR code for the given text.
- draw_
rect - Draw a rectangle filling the given bounding box.
- draw_
rounded_ rect - Draw a rectangle with rounded corners.
- draw_
sector - Draw a sector.
- draw_
sub_ image - Draw a subregion of an image.
- draw_
text - Render text using the given font.
- draw_
triangle - Draw a triangle.
- set_
canvas - Set canvas to be used for all subsequent drawing operations.
- set_
color - Set a color value in the palette.
- unset_
canvas - Unset canvas set by
set_canvas
. All subsequent drawing operations will target frame buffer.