예제 #1
0
 /// <summary>
 /// cycle the pixels moving them up by increment pixels
 /// </summary>
 /// <param name="increment">number of positions to shift. Negative numbers backwards. If this is more than the number of LEDs, the result wraps</param>
 public void FrameShift(int increment = 1)
 {
     //this creates less garbage:)
     if (increment > 0)
     {
         FrameShiftForward((ushort)increment);
     }
     else if (increment < 0)
     {
         FrameShiftBack((ushort)Utilities.Absolute(increment));
     }
 }