Switch between color/brightness with rotary encoder for Nano (RGB LED Strip)

That's right. In the rest of the code that you already have, instead of reading state of the button, use encoderFunction for decision if rotary encoder will change brightness or color.