# Backward direction for i in range(NUM_LEDS - 2, 0, -1): clear() np[i] = color np.write() time.sleep(delay)