| 1 | export type Rgb = [number, number, number] |
| 2 | |
| 3 | export type DitherColor |
| 4 | | "green" |
| 5 | | "blue" |
| 6 | | "purple" |
| 7 | | "pink" |
| 8 | | "orange" |
| 9 | | "red" |
| 10 | | "grey" |
| 11 | |
| 12 | export type Seed |
| 13 | |
| 14 | // Each seed: the area-fill hue, the bright series line, and the star sparkle. |
| 15 | export const PALETTE: |
| 16 | green: { fill: [ |
| 17 | blue: { fill: [ |
| 18 | purple: { |
| 19 | fill: [150, 110, |
| 20 | line: [200, 175, |
| 21 | star: [225, 210, |
| 22 | }, |
| 23 | pink: { fill: [ |
| 24 | orange: { |
| 25 | fill: [255, 150, |
| 26 | line: [255, 195, |
| 27 | star: [255, 220, |
| 28 | }, |
| 29 | red: { fill: [ |
| 30 | // No-data: a muted grey so empty metrics read as "nothing here". |
| 31 | grey: { fill: [ |
| 32 | } |
| 33 | |
| 34 | export const rgb = |
| 35 | `rgba(${Math.round |
| 36 | |
| 37 | export const seedOfColor = |
| 38 | |
| 39 | export const isDitherColor = |
| 40 | typeof value === " |