I was thinking of a new way to create animations and thought about an example using the square wave. This issue is that a square wave only give a 50/50 cycle. This means the on/off functions are expressed in equal terms (or time lengths). I am looking for something more like this:
The bottom wave form has a shorter ‘on’ period and longer ‘off’ period. In practice, using a y-offset (instead of the normal x-offset) you could effectively create a looping series (each color is a separate image element):
pulseWave(Pulse Width, Time, xOffset)
Creates a pulsewave pattern out of Pulse Width within a set Time Period
A pulse lasting 0.05 of a second, will happen 5 times each second, at the start of each second.
Time Period = #Dsm#-#Ds#)/5 = 0.2/sec; PW = 0.25 * 0.2/sec = 0.05/sec
To recreate a SquareWave you would set the PW = 0.5