Wild Mode
Wild Storm
20 layered wave lines - left half smooth, right half wild. Move the mouse to control unpredictability from 0 to 1 and feel the chaos build in real time.
Core snippet
// mouseX controls unpredictability from 0 to 1
const unpred = constrain(map(mouseX, 0, width, 0, 1), 0, 1);
// 20 layered lines - smooth on the left:
Waves.wave(y * 0.014 + phaseOff, {
wave: 'mountain peaks', t: t,
amplitude: 90
});
// same formula, wild on the right:
Waves.wave(y * 0.014 + phaseOff, {
wave: 'mountain peaks', t: t,
mode: 'wild',
unpredictability: unpred,
amplitude: 90
});