Each thumbnail is a live sketch. Click → full example for the code and full-size canvas.
All 34 waves. Morph, shift, wild mode. Try everything.
Three ways to call it. All three return a number.
The wave changes automatically every few seconds. Smooth morph between random formulas. One flag, zero setup.
A seed picks a wave formula. Change the seed over time and the wave switches automatically — no state, no timers.
Amplitude = how tall. Frequency = how tight. Phase = how far shifted. Same formula, one parameter changes per row.
Left side: normal. Right side: mode: 'wild'. Adds wobble to frequency, phase, and amplitude at the same time.
Four samplers steer 100 particles. Each sampler uses a different wave. Swap the wave names and the whole flow pattern changes.
No built-in clock. Pass any number as t. Move the mouse to scrub through time. Freeze it, rewind it, speed it up.
Two waves sample across x and y to control hue and brightness. The result is a flowing color landscape.
Blend two wave formulas together. mix: 0 = pure A, mix: 1 = pure B. Animate it and the shape smoothly transforms.
One call fills a 2D grid. With threshold, each cell is on or off — a binary pattern that animates.
Three samplers — one per axis — each shifting on its own cycle. Points near the surface glow.