ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
palette_def_t Struct Reference

Validated luminance palette used to turn brightness into characters. More...

#include <include/ascii-chat/video/ascii/palette.h>

Data Fields

const char * name
 Human-readable palette name.
const char * chars
 Character sequence (ordered from dark to light).
size_t length
 Number of characters in sequence.
bool requires_utf8
 True if palette contains UTF-8 multi-byte characters.
bool is_validated
 True if palette passed validation checks.

Detailed Description

Validated luminance palette used to turn brightness into characters.

The character sequence is stored in display order from dark to light. chars gives the decoded UTF-8 bytes and terminal width for each character; the original string and its byte length are retained so callers can report, reuse, or free the exact input.

Note
Character sequence must be ordered from darkest to lightest for proper luminance mapping.

Definition at line 124 of file palette.h.


The documentation for this struct was generated from the following file: