Skip to content
kASCII
Esc
↑↓navigate↵open⌘Jpreview
On this page

Using with Stipple

Dithers and glyphs in one app.

Stipple turns tone into ink and paper dots, kASCII turns it into glyphs. They are independent libraries with no dependency on each other, and they share an architecture, so they combine well.

Dither behind, glyphs on top

Box(Modifier.fillMaxSize().dither(field = DitherFields.mesh(), pattern = DitherPatterns.Bayer4)) {
    AsciiCanvas(Fields.noise(), Modifier.fillMaxSize(), charset = Charsets.Dots)
}

Glyph art as a dithered mask

Render a piece to a bitmap with grid.toImageBitmap(theme) and hand it to Stipple’s image modifiers, or the other way round: dither an image, then use AsciiImage to turn the result into glyphs.

Shared look

Give both libraries the same ink and paper so the two layers read as one:

val ink = Color(0xFFCAD5E2)
val paper = Color(0xFF06051D)
ProvideKasciiTheme(kasciiThemeOf(ink = ink, paper = paper)) {
    ProvideStippleTheme(StippleTheme(ink = ink, paper = paper)) { Screen() }
}

Both clocks pause offscreen and follow reduced motion, so a screen that uses both stays calm under the same setting.

Was this page helpful?