Repository navigation
feat(tui): add tiered ASCII pictures that fill free space - #98
Merged
Merged
Conversation
m1ngsama
force-pushed
the
feat/home-and-heatmap-details
branch
from
October 28, 2026 11:42
aaf9e35 to
57947d6
Compare
m1ngsama
force-pushed
the
feat/pictorial-art
branch
from
October 28, 2026 11:43
5f17119 to
d2ad9e8
Compare
m1ngsama
force-pushed
the
feat/pictorial-art
branch
from
October 28, 2026 11:47
d2ad9e8 to
f5c6edf
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prompt's pages leave most of a large window empty. This adds ASCII pictures that fill the space, gain detail as the window grows, and degrade with the terminal's capabilities. The base is #97 and should move to
mainonce #97 and #92 merge.Decision for review:
src/core/pixel-art-fine.tsand the new "Picture Detail" setting add an opt-in tier of Unicode blocks (off by default). Drop both if Prompt should stay ASCII-only.Tiers. Pictures use the finest tier the terminal supports:
NO_COLORLANG=Cstays ASCII. Nothing is drawn below 30 columns by 7 rows, so a full 80×24 page is unchanged.Pictures
Algorithms. Cells are matched against measured glyph coverage, and brightness error is diffused to neighbouring cells in serpentine Floyd–Steinberg order, as in the libcaca study, so gradients mix densities instead of banding. Flat areas choose only among density-ramp glyphs (
.:-=+*#%@), so the mixing reads as shading, not noise. Planets are lit by their surface normals, as in donut.c, with normals bumped by fractal and Worley noise height fields; the textures turn over time while loading.scripts/generate-art.mjsregenerates the static bitmaps and shaded emblems;scripts/generate-glyphs.mjsmeasures the ink coverage of each ASCII character. Landscapes are generated at runtime and cached per window size and five-minute step. The package grows from 130,040 to about 154,000 bytes compressed, with no new dependencies.Validation:
npm run check(1,161 tests, package check, audit with zero vulnerabilities). Checked in a pseudoterminal at 80×24, 110×28, 150×42, with and withoutLANG=CandNO_COLOR. The fine tier was checked on the About page only.