Making code smaller

"Complex patterns" doesn't tell me much other than that you either have a lot of LEDs to control, that you want to control them in complex rhythms, that you want to vary the colors and/or intensity of your LEDs, or some combination of the above...

Would you please define what you mean by "complex patterns" , how many LEDs, and what kind(s) of control you want to exercise?