Skip to content

v0.1.1

Choose a tag to compare

@crypt0lith crypt0lith released this 28 Jun 23:01
· 246 commits to master since this release
v0.1.1
88b6da9

Initial release.

Features

Colored terminal text

  • ColorStr: a string carrying foreground/background color and SGR style state
  • Color and the ANSI formats ansicolor4Bit, ansicolor8Bit, ansicolor24Bit
  • palette namespaces Fore, Back, Style, plus ColorNamespace and rgb_dispatch

Color-space conversion

colorconv converts RGB to and from HSL, HSV, LAB, XYZ, and hex, with nearest-color lookups for the 4-bit and 8-bit ANSI palettes.

ASCII and ANSI art

  • img2ascii, img2ansi: convert images to ASCII/ANSI text art
  • ascii2img, ansi2img: render text back to images
  • reshape_ansi, ansi_quantize, read_ans, render_ans, AnsiImage: read and reshape ANSI content

Font rendering

  • get_font_object, render_font_char, render_font_str, get_glyph_masks, and the CP437 helpers: glyph rasterization and character-set preparation
  • register_user_font: register custom fonts

Bundled assets

The IBM VGA 437 and Consolas fonts and several sample images, exposed via chromatic.data.

https://github.com/crypt0lith/chromatic/tree/v0.1.1