// The colours of the cinema's things, where they are not painted. // // A film's lobby frame (its black rails, brass corners and cream marquee), // its shadow, the red progress strip, the ticket stub and its shadow, a // series' season cards, the curtain-red velvet the frame hangs on and the // house light over it are painted (`Media.xcassets`, imported by // `scripts/import-cinemas-materials.py`). What is drawn live over the paint // takes its colour from here: the warm near-black the marquee's words, a // season card's and a stub's day are typed in, the red a stub's stamp is // struck in (the stub's own printed box), the dark blue field and the cream // title of a one-sheet typed where a film keeps no poster, the shade the // strip's unwatched track is taken down by, the dark an episode's lobby card // shows where it keeps no still, the velvet's own colour, the // ground's where its tile is not drawn, and a letterboard tile's cream // letters and black felt (Round 19) — each read off the Round 14 // materials and their composites as a dye is read off its photograph. A // material is NOT a palette role: it is the colour of a thing, 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 cinema's materials. public enum CinemasMaterial: String, CaseIterable, Sendable { /// The curtain-red velvet a film's frame hangs on (`FaceGround.velvet`), /// its tile's mean. case velvet /// The warm near-black the marquee, a season card and a stub's day are /// typed in. case ink /// The red a stub's stamp is struck in. case stamp /// The dark blue field of a one-sheet typed for a film kept without a /// poster. case field /// The cream its title is set in. case cream /// What the strip's paint is multiplied by where the film is still to /// run: its track, the enamel taken down to two fifths. case track /// The dark an episode's lobby card shows through its aperture where it /// keeps no still, laid thin enough that the velvet shows through it /// (`EpisodeLobbyFaceKnobs.screenStrength`), its number typed on it in /// the cream. case screen /// The cream of a letterboard tile's plastic letters, matched to its /// pictograms' faces (`PaintedTile`). case letters /// A letterboard tile's black felt, where no stock is in hand yet. case letterFelt public var colour: Color { switch self { case .velvet: Color(red: 0.295, green: 0.007, blue: 0.016) case .ink: Color(red: 0.149, green: 0.106, blue: 0.078) case .stamp: Color(red: 0.596, green: 0.173, blue: 0.129) case .field: Color(red: 0.07, green: 0.12, blue: 0.22) case .cream: Color(red: 0.93, green: 0.85, blue: 0.7) case .track: Color(red: 0.4, green: 0.4, blue: 0.4) case .screen: Color(red: 0.035, green: 0.02, blue: 0.02) case .letters: Color(red: 0.937, green: 0.902, blue: 0.808) case .letterFelt: Color(red: 0.09, green: 0.086, blue: 0.082) } } }