Organic & Nature
Phyllotaxis Sunflower
620 amber-gold seeds grow outward in a Fermat spiral via the golden angle; parastichy arms rotate continuously and speed up on pointer or click.
canvasmedium complexitymoderate motionpointer
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Nature/organic-themed hero backgrounds, generative art showcases, science or botany education contexts needing an ambient looping pattern.
When not to
Contexts requiring legible text overlays — the rotating seeds compete visually. Avoid on low-end devices if many other canvas tiles run simultaneously.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change seed count to 400 by setting N=400, shift palette to blue-violet (hue base 240, rim hue 200), slow rotation by reducing phase increment from 0.0016 to 0.0008. 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
- seed count (N=620)
- rotation speed (phase += 0.0016)
- pointer boost strength (boost*0.01)
- hue range (52 core to 28 rim)
- seed size formula (sz calculation)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- DPR-aware canvas sizing with setTransform
- IIFE wrapper
- visibilitychange pause/resume
- reduced-motion static fallback (draw(0))
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Boost decays on pointermove but never fully resets to zero — tiny residual drift remains
- Background color hardcoded in CSS (#1a1206) — must edit both CSS and bgGrad stops to retheme
- No click toggle state — click only momentarily boosts spin speed
More Organic & Nature components
- Growing VineA sinuous green vine grows upward sprouting 14 alternating leaves and a pale bud tip, then retracts in a seamless loop on a dark forest background.
- Flickering FireAdditive-blended ember particles rise from a glowing orange base, flickering like a real flame; cursor pans left/right to fan the fire sideways.
- Water RippleConcentric ripple rings expand across a deep teal water surface with shimmering caustic bands; tap anywhere to drop a new ripple. Auto-drops periodically.
- Lightning BoltJagged lightning bolts with branching forks strike randomly down a dark storm-sky canvas; screen flashes rust-white on each strike. Tap to trigger instantly.
- Falling SnowUp to 110 depth-layered snowflakes drift and sway down a dark blue gradient; pointer movement shifts a wind force that nudges the entire flurry sideways.
- Drifting CloudsPuffy white clouds with radial-gradient puffs and soft blue undersides drift across a layered sky gradient; pointer nudges them forward.