Module ascii

Source
Expand description

This module holds the structs related to displaying text and ASCII art on a Canvas

Structs§

AnimatedSprite
The AnimatedSprite struct contains a list of Strings into which it indexes based on its current_frame property. You can cycle through frames with the AnimatedSprite::next_frame() function
Sprite
The Sprite takes a multi-line string as a parameter, and can be used to draw ASCII art to a Canvas
Text
Displays text at the given position
TextAlign2D
Two-dimensional text align, used by Sprite and AnimatedSprite

Enums§

TextAlign
An enum to determine the alignment of an ascii element’s content