Skip to content

1681-engine / react / GlyphArt

Interface: GlyphArt ​

Defined in: src/react/Glyph.tsx:13

Small marks (close, check, arrows, a star…) as pixel art on a square grid, drawn in the text's colour. A pixel font usually carries letters and punctuation only, so a ✕, ✓, ▾ or → typed into the UI falls through to a system font and reads as a smooth vector glyph in the middle of pixel text. scale is screen pixels per glyph pixel: a whole number, so the mark keeps its pixels square.

Rows are strings, one character a pixel: . is empty, X the text's colour; any other letter takes its colour from the glyph's tones (a coloured glyph, lit like the world's art).

Properties ​

rows ​

ts
rows: readonly string[];

Defined in: src/react/Glyph.tsx:14


tones? ​

ts
optional tones?: Readonly<Record<string, string>>;

Defined in: src/react/Glyph.tsx:15

Released under the MIT License.