Repository navigation
Commit ca78384
feat(weather): emit PixelArt sprites for current conditions
Extends the `weather` fetcher (Open-Meteo now) with a `PixelArt` shape
variant. Each WMO weather code maps to one of eight bundled 16x16
sprites: clear / mostly_clear / partly_cloudy / overcast / fog / rain /
snow / thunderstorm. Unknown codes fall back to overcast so the renderer
always has something to draw.
Sprites are authored as ASCII grids with a per-sprite palette in
`weather/sprites.rs`, decoded once via `OnceLock`. Keeps the binary text
diff reviewable (no PNG assets to track) and bypasses any runtime PNG
decode.
Refs #259, #68 (weather extension).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent b275bde commit ca78384
3 files changed
Lines changed: 431 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
531 | 535 | | |
532 | 536 | | |
533 | 537 | | |
| 538 | + | |
534 | 539 | | |
535 | 540 | | |
536 | 541 | | |
| |||
545 | 550 | | |
546 | 551 | | |
547 | 552 | | |
| 553 | + | |
548 | 554 | | |
549 | 555 | | |
550 | 556 | | |
| |||
0 commit comments