forever components

Playful Geometric Notation

Arrow Field

A grid of colored arrows rotates and pulses in a slow flow-field current, each pointing direction driven by sine waves and radial angle from center.

canvasmedium complexitymoderate motion

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Dark-mode ambient backgrounds, generative art displays, data-flow or directional concept visualizations.

When not to

Light backgrounds (hardcoded dark ground). Contexts needing readable text overlays — arrows fill the full viewport.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change the color palette by replacing the HUES array with ['#e63946','#457b9d','#f4a261','#2a9d8f','#e9c46a'], increase grid density by reducing gap from 46 to 32. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • color palette (HUES array)
  • grid spacing (gap=46)
  • flow speed (t*0.5 and t*0.25 factors)
  • arrow length range (14+pulse*12)
  • rotation influence (0.9 and 0.4 blend weights)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • DPR-aware canvas sizing in fitCanvas()
  • IIFE wrapper
  • prefers-reduced-motion guard (REDUCED)
  • visibilitychange pause/resume
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in both CSS and canvas fill — must update both to change ground color
  • No pointer interactivity — arrows ignore cursor position

arrowsflow-fieldcanvasgridambientgenerative

More Playful Geometric Notation components

  • Magic Square7x5 grid of color blocks in terracotta, teal, mustard, slate, and plum that slowly breathe — scaling and shifting saturation — evoking a Bauhaus…
  • A Line Goes WalkingA single ink line wanders the warm paper canvas step by step, tracing a random path from a teal start-dot to a terracotta head; fades and resets on a loop.
  • Glyph GardenChildlike pictographs — fish, moon, arrow, face, tree, star, boat — drawn stroke-by-stroke on warm paper, held, then erased and reseeded in a cycling grid.
  • Polyphony GridA 16x6 color grid swept by a column playhead; active cells flash with scale and glow on each pass, voices re-seeded each lap for evolving compositions.
  • Twittering ContraptionFour Bauhaus-style wire birds bob on a horizontal wire and chirp musical notes while a hand-crank below spins. Inspired by Bauhaus's 1922 painting.
  • Colour Staircase9 color-graduated bars ascend like a staircase, each breathing in height and marching hue in staggered CSS keyframe loops. Warm parchment background.