Skip to content

feat(tui): draw the ASCII emblems as line art - #100

Merged
m1ngsama merged 5 commits into
mainfrom
feat/ascii-emblem-redo
Oct 31, 2026
Merged

m1ngsama merged 5 commits into
mainfrom
feat/ascii-emblem-redo

Conversation

@m1ngsama

@m1ngsama m1ngsama commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

The ASCII emblems did not look like the club logo. They were averaged from the Braille badge, which blurred the eyes, and the small one was a hand-drawn smiley. A later fit to the logo (matching blurred renderings) still gave broken rings, stray punctuation, and a smile that merged into the inner ring.

scripts/generate-emblems.mjs now draws the logo as line art, the way line-ASCII artists did. It starts from the logo itself (scripts/emblem-face.svg, the face without the lettered band) and thins the strokes. Each cell that holds a stroke gets the plain character that follows the stroke's direction and position: _ - ' for near-horizontal, / \ for diagonal, | ( ) for upright, with only one stroke character per row where lines run upright. The glyph set is .'-_|/()plus@` for the pupils. The left half is mirrored onto the right, the face is drawn at 90% size so the smile does not merge into the inner ring, and the eyes are hand-drawn motifs placed at the pupils' positions (the right eye is a copy of the left, as in the logo).

The large emblem also writes the logo's lettered band: "Computer Association of NBT" along the top and the tagline along the bottom. Each word is a straight run of upright letters (horizontal, diagonal, or vertical, whichever drifts least from the band). A word that does not fit replaces part of a ring.

File Size Rings
ascii-emblem-large.txt 56 × 26 outer, inner
ascii-emblem-medium.txt 40 × 19 outer, inner
ascii-emblem-small.txt 26 × 12 outer
ascii-emblem-tiny.txt 20 × 9 outer

The medium emblem fits an 80 × 24 terminal. ascii-logo.txt is gone: below 14 rows the startup writes plain NBTCA, and Unicode terminals that cannot fit a Braille badge fall back to these emblems. scripts/generate-art.mjs no longer generates emblems.

Validation: npm run check passes except npm audit, which already fails on main for vite 6.4.4 (GHSA-8g5g-mxqh-grgj). Checked in a pseudoterminal at 80×40, 80×24, 80×17, and 80×14 with LANG=C.

@m1ngsama
m1ngsama force-pushed the feat/ascii-emblem-redo branch from e815212 to 5a0a749 Compare October 30, 2026 03:34
@m1ngsama m1ngsama changed the title feat(tui): redraw the ASCII emblems from their strokes feat(tui): fit the ASCII emblems to the club logo Oct 30, 2026
@m1ngsama m1ngsama changed the title feat(tui): fit the ASCII emblems to the club logo feat(tui): draw the ASCII emblems as line art Oct 31, 2026
@m1ngsama
m1ngsama merged commit 5cc87ea into main Oct 31, 2026
1 of 4 checks passed
@m1ngsama
m1ngsama deleted the feat/ascii-emblem-redo branch October 31, 2026 08:57
@m1ngsama m1ngsama mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant