Skip to content

No.206 · Backgrounds

Wind Map

A weather chart drawn by the wind: thousands of particles ride a slowly turning flow field and leave fading hairline trails, coloured by speed, and the pointer is a small low-pressure system they spiral round.

The prompt

Copy this text

Automatic copying is unavailable. Copy the selected text using your device’s copy command.

Written for the variant you picked above: Night

Build a canvas 2D background in the style of a live wind map. The field: the wind direction at (x, y) is a smooth 2D value noise sampled at a large scale (0.0016/px) and drifting slowly through time, times 2.2π, plus a finer octave for texture; its strength comes from a third, broader noise. Scatter particles at ~11 per 10,000 px² (fewer on touch), each with a random life of 40–200 frames, respawning at a random point when it dies or leaves the canvas. Each frame, fade the canvas toward the background with a low-alpha fill (6%) so earlier movement leaves trails, then advance every particle by its wind vector and draw the segment it travelled. Bucket segments into four Path2D objects by speed and stroke each once with a colour from a slow → fast ramp (colours prop: background, slow, mid, fast), so a frame is four stroke calls rather than thousands. The pointer is a small low-pressure system: within ~210px a Gaussian-weighted vortex adds a tangential push plus a slight inward one, so the wind bends round it and spirals in; it fades in and out as the pointer enters and leaves. Stop requesting frames offscreen or in hidden tabs. Under reduced motion, run 90 frames up front with a slower fade and leave the still chart. Selected variant — Night (night): Colours [#070a10 background, #2b3d5c slow, #7d9cc8 mid, #f0d9b5 fast]: dark blue → frost → pale tan streaks on a near-black chart; labels white at 40–55%. 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: The wind bends round the pointer and spirals in toward it. Motion: Particles advance every frame; the field drifts over minutes; trails fade at 6% per frame; the pointer vortex eases in at 4% per frame. Accessibility: The canvas is aria-hidden and decorative. Reduced motion draws a still chart of built-up trails. Responsive behavior: Particle count scales with area; the canvas is redrawn at the new size on resize. Touch: No vortex on touch, 60% of the particles, ~33fps. 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
The wind bends round the pointer and spirals in toward it.
Motion
Particles advance every frame; the field drifts over minutes; trails fade at 6% per frame; the pointer vortex eases in at 4% per frame.
Accessibility
The canvas is aria-hidden and decorative. Reduced motion draws a still chart of built-up trails.
Responsive
Particle count scales with area; the canvas is redrawn at the new size on resize.
On touch
No vortex on touch, 60% of the particles, ~33fps.