Expand description
Named colours: a palette file ({"name": "#RRGGBB", ...}) that all
drawing code refers to by name. The game says which names it needs; a
theme is another palette file with exactly the names of the default
one (theme_problems). As a format (ADR-0007): PaletteRon.
Structs§
- Palette
Def - The validated palette: colour name → RGB.
- Palette
Ron - A palette file (
palette,.ron), checked asPaletteDef::from_sourcesays against the colours the game requires.
Functions§
- format_
hex - Formats RGB as lowercase
#rrggbb. - line_
of_ key - 1-based line of the first line containing
"key", for error positions. - parse_
hex - Parses
#RRGGBB(hex digits in either case) into RGB. - theme_
problems - What is wrong with theme
palette(its file shown asfile): it must define exactly the colour names of the default theme’sbase(a name missing would leave something unpainted; an extra one is a typo).