#genuary2025 #genuary10
Day 10: "only use TAU in your code"
I cheated by deriving other numbers, like int(TAU) = 6, int(sqrt(TAU)) = 2, etc.
@ylegall This looks a LOT better than my rudimentary "sinusoidal Mario". 😃
Do you have a legible code I can take a peek at for inspiration?
@j_bertolotti looks like in your gif the image value only affects the amplitude of the wave? I think the only difference is my version affects the frequency.
@ylegall I tried both, but couldn't come up with a simple formula where the frequency was position-dependent, the line was nice (continuous and infinitely differentiable) and didn't take forever to compute 😉
@j_bertolotti one thing I did to avoid discontinuities: for each point on each horizontal line, calculate the cumulative lightness value going from left to right. Then use this (times some factor) to drive the wave.