Expand description
This module holds the structs related to displaying text and ASCII art on a Canvas
Structs§
- Animated
Sprite - The
AnimatedSprite
struct contains a list ofString
s into which it indexes based on itscurrent_frame
property. You can cycle through frames with theAnimatedSprite::next_frame()
function - Sprite
- The
Sprite
takes a multi-line string as a parameter, and can be used to draw ASCII art to aCanvas
- Text
- Displays text at the given position
- Text
Align2D - Two-dimensional text align, used by
Sprite
andAnimatedSprite