Repository navigation
feat(tui): draw the ASCII emblems as line art - #100
Merged
Merged
Conversation
m1ngsama
force-pushed
the
feat/ascii-emblem-redo
branch
from
October 30, 2026 03:34
e815212 to
5a0a749
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.
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.mjsnow 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.
ascii-emblem-large.txtascii-emblem-medium.txtascii-emblem-small.txtascii-emblem-tiny.txtThe medium emblem fits an 80 × 24 terminal.
ascii-logo.txtis gone: below 14 rows the startup writes plainNBTCA, and Unicode terminals that cannot fit a Braille badge fall back to these emblems.scripts/generate-art.mjsno longer generates emblems.Validation:
npm run checkpasses exceptnpm audit, which already fails onmainfor vite 6.4.4 (GHSA-8g5g-mxqh-grgj). Checked in a pseudoterminal at 80×40, 80×24, 80×17, and 80×14 withLANG=C.