Module gemini_engine::elements::ascii
source · Expand description
This module holds the structs related to display of ASCII characters, both text and ASCII art
Structs§
- The
AnimatedSpritestruct contains a list ofStrings into which it indexes based on itscurrent_frameproperty. You can cycle through frames with theAnimatedSprite::next_frame()function - The
Spritetakes a multi-line string as a parameter, and can be used to put ASCII art, text and other such things on theView - Displays text at the given position
- Two-dimensional text align, used by
Spriteand all variations
Enums§
- An enum to set the alignment of a Text element’s content
Functions§
- Remove all leading newlines from the string