Speaking of waves… I’d like to suggest a constrained task for 1D. The idea would be to explore a particular function, like wave()
- e.g. given this starting template, using only time()
and wave()
and basic math operators.
export function render(index) {
var h, s, v, x
x = index/pixelCount
// make a pattern using wave() and time() and basic math operators
// what happens when you set one to wave(x + time(.1)) you get a moving wave!
// or wave(x + wave(time(.1))) a wave that moves in a wave (back and forth)!
// or wave(x + time(.1)) + wave(x - time(.06)) waves that move into each other
// try even more crazy combinations of wave an time and x, and in different aspects
// of the color by using them in h, s, or v
h = 0
s = 1
v = 1
hsv(h, s, v*v)
}
Sort of like functional golfing, but with the idea that you get really familiar with a few of the basic animation tools. Thoughts?