Toggle Switch To Change LED Animation Not Working

It's doesn't quite work how I was expecting, (the setPixelColor in the if doesn't change the pixel colour

It does, but only for one pixel. Just like in brightenL() and darkenL(), you need a for loop to iterate through the pixels, and set the color of each of them.