[−][src]Module simpleterm::text
Contains functions related to text color and bounds.
Constants
CRIMSON | █ |
DARK_GREY | █ |
DARK_PURPLE | █ |
EMERALD | █ |
GOLD | █ |
LIGHT_BLUE | █ |
LIGHT_PURPLE | █ |
OFF_WHITE | █ |
Traits
TermColor | Adds brightness functions to PistonWindow's Color type |
Functions
check_flash | Determines if enough time has passed since the last flash toggle. If so, save the current time and toggle the current flash state. |
load_font | Returns the Glyph cache generated from the given font file opened in the given PistonWindow. |
place_art | Determines the top left corner of the given art in the given window, in order for the art to be centered. |
split_word | Returns a vector of strings corresponding to a word split up at the given number of characters. first_split may be smaller than rest_split to allow the first part of a word to fit on a line with previous words. |