Easiest way to have the patterns in a program change with a button rather

Easiest way to have the patterns in a program change with a button rather than timed? I’m using a slightly modified (just tweaked with variables) version of demoreel100, and I want to be able to change the pattern with the press off a button.

I like to use a button library, which handles the dirty work for me. I’ll then have a variable inside my button routine which increases each time I press the button, or resets if the button library detects a ‘long’ push. My loop calls the display based on the value of that variable, let’s say using a switch statement.

Check out this guide on Adafruit.com: https://learn.adafruit.com/animated-neopixel-gemma-glow-fur-scarf/the-code