// The colours of the reader's two papers, where they are not painted.//// The reader (CottonUI's `ReadPage`) is one page in two lights: by day the// CENTRED page the owner chose on 29 Oct 2026 (`reader-look/1-centred`), plain// warm cream with the faintest grain; by night THE LAMP// (`reader-look/4-lamp`), warm near-black paper under a reading lamp. The// papers' grain is a tile (`reader-paper`, `reader-night`, made by// `scripts/import-reader-materials.py`); what is drawn live over it takes its// colour from here: the paper's own colour where its tile is not drawn, the// ink, the lamp's pool, and the dim amber the lamp's marks are in. A material// is NOT a palette role: it is the colour of a thing, read off the reference// the way a paper's dye is read off its photograph (`PaperDye`).// `PaletteGuardTests` exempts this file from the CHANNELS sweep for that// sentence and no other; it writes no hex and names nothing.importSwiftUI/// The reader's materials.publicenumReaderMaterial: String, CaseIterable, Sendable {/// The page's warm cream, read off the centred picture's blank paper:/// its tile's mean.case paper/// The warm near-black the page's words are in.case ink/// The lamp's warm near-black paper at its darkest, its tile's mean.case night/// What the lamp's pool adds to the night paper at its centre: the/// paper there is `night` plus this, a warm brown about as bright as the/// picture's pool reads above the words.case pool/// The warm off-white the lamp's words are in.case lampInk/// The dim amber of the lamp's close mark, running head and progress.case amberpublicvar colour: Color {switchself {case .paper: Color(red: 0.953, green: 0.924, blue: 0.882)case .ink: Color(red: 0.169, green: 0.149, blue: 0.129)case .night: Color(red: 0.086, green: 0.075, blue: 0.059)case .pool: Color(red: 0.165, green: 0.125, blue: 0.078)case .lampInk: Color(red: 0.914, green: 0.882, blue: 0.824)case .amber: Color(red: 0.604, green: 0.455, blue: 0.251) } }}