Module firefly_rust::graphics
source · Expand description
Draw shapes, images, and text on the screen.
Structs§
- An angle between two vectors.
- The same as Style but without a fill color (only stroke color and width).
- A point on the screen.
- The RGB value of a color in the palette.
- Size of a bounding box for a shape.
- Style of a shape.
Enums§
- A pointer to a color in the color palette.
Constants§
- The screen height in pixels.
- The screen width in pixels.
Functions§
- Fill the whole frame with the given color.
- Draw an arc.
- Draw a circle with the given diameter.
- Draw an ellipse (oval).
- Render an image using the given colors.
- Draw a straight line from point a to point b.
- Set a single point (1 pixel is scaling is 1) on the frame.
- Draw a rectangle filling the given bounding box.
- Draw a rectangle with rounded corners.
- Draw a sector.
- Draw a subregion of an image.
- Render text using the given font.
- Draw a triangle.
- Set a color value in the palette.