enough_ascii_art library
Have fun with ASCII text-based art.
Brought to you by πΌππ π¦ππ ππ ππ₯π¨ππ£π
Classes
- Character
- Because FIGfonts describe large characters which consist of smaller characters, confusion can result when descussing one or the other. Therefore, the terms "FIGcharacter" and "sub-character" are used, respectively.
- EmoticonConverter
- Converts common UTF-8 smileys to their ASCII representation
- FIGlet
- Helper class to render a FIGure
- Font
- A FIGfont is a file which represents the graphical arrangement of characters representing larger characters.
- ImageConverter
- Converts images to ASCII
- Parser
- Renderer
- Renders FIGlet fonts for a given text
- UnicodeFontConverter
- Unicode converter helper
Enums
- EmoticonStyle
- The style of the emoticons. Currently only the western emoticon style is supported.
- FigletRenderDirection
- HorizontalLayout
- Smushing brings FIGlet character closer together.
- PrintDirection
- The direction for rendering a font
- RenderOptions
- UnicodeFont
- The available unicode fonts
- VerticalLayout
- Smushing brings FIGlet character closer together.
Extensions
Functions
-
convertEmoticons(
String text, [EmoticonStyle style = EmoticonStyle.western]) β String - Replaces all common smileys with their ASCII representation
-
convertImage(
Image image, {int maxWidth = 80, int? maxHeight, String charset = _asciiGrayScaleCharacters, bool invert = false, double fontHeightCompensationFactor = 0.6}) β String - Converts the image to ASCII text.
-
renderFiglet(
String text, Font font, {FigletRenderDirection direction = FigletRenderDirection.leftToRight}) β String -
Renders the given
text
in the specifiedfont
. -
renderUnicode(
String text, UnicodeFont font) β String -
Renders the given
text
in the specifiedfont
.