Returns a value that alternates ("ping-pongs") between 0 and length.
0
The alternated value.
The value to pingpong.