Closed davidedc closed 10 years ago
Good call.
I never liked wave myself, because it is little more than just a sine (is sin
really that scary? ;) ), and move
doesn't even default to just move wave
because it needs both a sin
and a cos
. But, you are right that, at the very least, frequency is more sensible than period.
Regarding beat
however, can simply be sped up doing beat * 2
. "Longening" that to beat(2)
makes little sense, and it obfuscates what beat
actually means.
For pulse
I will introduce a single argument that multiplies the beat()
call by that number, so pulse(2)
will result in pulsing twice as fast.
there should be a way to modify the beat and pulse values just like wave, so it will be possible to have, say, a box flashing twice as fast as another one.
Also I'd probably change from specifying the period to specifying the frequency. I think it's more natural to have "more flashing" with higher numbers rather than the opposite.