No.183 · Backgrounds
Star Trails
A long-exposure night sky: hundreds of stars smear into concentric arcs around a celestial pole, and the pole follows your pointer.
The prompt
Written for the variant you picked above: Blue
Simulate a long photographic exposure. Scatter ~420 stars in polar coordinates (radius with a power-law bias, random angle, size, and a hue within ±35° of the palette). Every frame rotate the whole sky a fraction of a degree about a pole and stroke a short chord from each star's previous to new position, without clearing the canvas — only laying a 1.2% opacity night-colour veil so the oldest trails slowly fade. Pre-render ~160 steps at mount (700 for reduced motion) so arcs are already long on first paint. The pole eases toward the pointer within a small range. Cap DPR at 2 and pause offscreen. Selected variant — Blue (blue): hue={215}: star colours spread ±35° around blue. This selection takes precedence over references to other themes or options in the general brief. Implement this selected appearance; do not add a variant picker or alternative appearances unless requested. Implementation requirements: Use React and TypeScript. Keep the component self-contained, with uniquely scoped CSS and no animation libraries. Include required imports, styles and font setup in the result. Interaction: Move the pointer and the celestial pole slides after it, bending the arcs. Motion: Cumulative canvas drawing with a faint fade veil; no clearing between frames. Accessibility: Decorative canvas; motion is extremely slow with no flashing; reduced motion shows only a pre-rendered still. Responsive behavior: Re-exposes on resize. Preserve keyboard access, visible focus and reduced-motion behavior. Keep fictional demo data and simulated service calls in a separate usage example; expose callbacks for real actions and recover from rejected requests. Keep usage-example links inside the demo: use local buttons or prevent navigation. Demonstration links must not navigate to Vitrine routes or open other pages; preserve real URL support in the reusable component itself. Verify the result at narrow and wide viewport sizes, with keyboard input and reduced motion enabled.
Notes
- Interaction
- Move the pointer and the celestial pole slides after it, bending the arcs.
- Motion
- Cumulative canvas drawing with a faint fade veil; no clearing between frames.
- Accessibility
- Decorative canvas; motion is extremely slow with no flashing; reduced motion shows only a pre-rendered still.
- Responsive
- Re-exposes on resize.