Amount to increment by. Defaults to 10%
Optional
lower: numberOptional
upper: numberOptional
start: numberStarting point within range. Defaults to 0 using a positive interval or 1 for negative intervals
Optional
rounding: numberRounding to apply. This avoids floating-point rounding errors.
Continually loops up and down between 0 and 1 by a specified interval. Looping returns start value, and is inclusive of 0 and 1.
Example: Usage
Example: Alternative:
Because limits are capped to -1 to 1, using large intervals can produce uneven distribution. Eg an interval of 0.8 yields 0, 0.8, 1
upper
andlower
define the percentage range. Eg to ping pong between 40-60%: