Expand description
Canonical default colors (DEFAULT_FG,
DEFAULT_BG) shared by the graphical backends.
Canonical default colors shared by the graphical backends.
retroglyph-core’s Color::resolve_rgb already
resolves palette/RGB colors to (r, g, b); what it can’t supply is the value a
Color::Default foreground/background should fall
back to, which is a rendering-policy choice, not a core color-model one. Both graphical backends
(retroglyph-gl, retroglyph-software) resolve Color::Default to the same pair, so it lives
here once instead of being re-hardcoded (in two different representations) per backend, where it
could silently drift.
Constants§
- DEFAULT_
BG - Background for
Color::Default: black. - DEFAULT_
FG - Foreground for
Color::Default: a light grey, matching a typical terminal’s default text color.