firefly_rust

Module graphics

Source
Expand description

Draw shapes, images, and text on the screen.

Structs§

  • An angle between two vectors.
  • Canvas is an Image that can be drawn upon.
  • A loaded image file.
  • 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.
  • A subregion of an image. Constructed using Image::sub.

Enums§

  • A pointer to a color in the color palette.

Constants§

  • The screen height in pixels.
  • The screen width in pixels.

Functions§