Cotton code
35 lines · 1.6 KB · SwiftRaw
// The colours of the podcast radio's things, where they are not painted.//// The radio is painted (`radio-cabinet`, its dial card lit and dim, the// glass's sheen, plate, knob and pointer, keys, button, lamp and needle,// `scripts/paint-radio.py`, 12 Nov 2026), and it stands on the podcasts'// formica (`FaceGround.formicaCounter`). What is drawn live over the paint// takes its colour from here: the brown the dial's words and scale are// printed in on the cream dial card, the oxblood VOL and TUNE are engraved// in on the cream case, and the brown the keys' arrows and the plate's// count are cut in. A material is NOT a palette role: it is the colour of a// thing, read off its painting the way a paper's dye is read off its// photograph (`PaperDye`), and it does not flip with the theme.// `PaletteGuardTests` exempts this file from the CHANNELS sweep for that// sentence and no other; it writes no hex and names nothing.import SwiftUI/// The podcast radio's materials.public enum PodcastMaterial: String, CaseIterable, Sendable {    /// The warm brown the dial's show, programme, scale and times are    /// printed in on the dial card.    case dial    /// The oxblood VOL and TUNE are engraved in, filled into the cream case.    case engraving    /// The brown cut into the ivory keys and the chrome plate.    case cut    public var colour: Color {        switch self {        case .dial: Color(red: 0.24, green: 0.13, blue: 0.06)        case .engraving: Color(red: 0.55, green: 0.12, blue: 0.10)        case .cut: Color(red: 0.27, green: 0.16, blue: 0.08)        }    }}