Prior art
What exists already, and how kASCII differs.
kASCII stands on two projects that proved the idea on the web, and sits next to a sibling for dithering.
- asciicn (MIT) is a React and shadcn ASCII engine: tone to glyph over ten charsets, five color modes, a WebGL glyph shader, a Canvas grid, image, video and webcam sampling, and export to text, ANSI, SVG and PNG. kASCII borrows its vocabulary and the idea of ordering ramps by measured ink coverage.
- ascii.rest (MIT) is a catalogue of about 240 animated ASCII pieces with a kit for building more, plus banner and image tools. kASCII borrows the piece contract: a size, a frame rate, a still frame for reduced motion, and a function of time. Where a gallery piece is a port of a specific ascii.rest piece, its entry says so, and the original license is kept in
THIRD_PARTY_NOTICES. - Stipple is the same author’s dithered-UI library for Compose Multiplatform. It turns tone into ink and paper dots, kASCII turns it into glyphs. They share an architecture and can be used together, see using it with Stipple.
On Compose Multiplatform itself, a search of klibs.io, GitHub and Maven Central found no library for ASCII or text-mode effects. The nearest are:
- ShaderX, a shader library whose sample app has an ASCII camera built from a single dither shader, not a glyph atlas.
- Kasciffy, a Kotlin Multiplatform image and video to ASCII converter without Compose rendering.
- HypnoticCanvas, a multiplatform shader library whose texture plumbing is a useful reference.
What kASCII adds is a glyph engine that is a Compose citizen: modifiers, a real accessible component set, a pause-offscreen and reduced-motion clock, a choice of renderers including selectable text, and an animated gallery, all from common code.