Charts & Flow
Golden Hour Solar Transit
Golden Hour Solar Transit control in the Sam Walks system.
canvasmedium complexitymoderate motionpointeraccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Photography or travel dashboards, sun-position explainers and any scene where a scrubbed time of day drives sky colour and a reading.
When not to
Accurate astronomy: the time, warmth and elevation figures come from a simple formula, not real solar data.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the scene by editing the sky stops (#10223A, #4A6B82, #2A1311, #7A2A22, #D4483B) in render(), the time and warmth formulas in setSun(), or the dust and red tokens (--dust, --red). The sun halo sprites are drawn once into sunGlows. Keep the scrub canvas #sw04-cv, the labels #sw04-timeLabel and #sw04-elevLabel, and the demo-v1 lifecycle.
Safe to edit
- sky gradient stops in render()
- time, warmth and elevation formulas in setSun()
- palette tokens (--dust, --red, --asphalt)
- sun halo sprite colours (sunGlows)
- canvas height (140px)
Keep intact
- First control stops idle sun drift; selected position repaints once.
- demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions
Known limitations
- State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
More Charts & Flow components
- Sankey FlowThree-stage Sankey diagram on dark canvas: bezier ribbons grow stage-by-stage from origins to hubs to outcomes, pulsing softly in opacity to show flow volume.
- Chord DiagramEight ring nodes with curved ribbons that swell and shrink as weights rebalance every ~3s. Additive blending creates glowing color overlaps.
- Treemap7 rounded cells partition the canvas via slice-dice treemap; cells lerp to new sizes every 2.6 s as synthetic values drift, with a subtle alpha pulse.
- CandlesticksGreen and red OHLC candles stream in from the right with smooth slide animation; newest candle grows from pivot. Dashed last-price marker traces horizontally.
- StreamgraphSix translucent stacked bands breathe around a central baseline via layered sines; a sweeping readout line tracks across with colored tick dots per band.
- Bubble Pack64 mint/teal/amber/coral circles settle under gravity with collision physics; size encodes value. Large bubbles pull toward center with a breathing pulse.