My terminology is probably not correct. here is an example of what im trying to do.
void loop(){
switch (state){
case 1:
FX1();
strip.setBrightness(pot);
break;
case 2:
FX2();
strip.setBrightness(pot);
break;
}
void colors(){
uint32_t red = strip.Color(255,0,0);
uint32_t blue = strip.Color(0,0,255);
}
void FX1(){
colors();
strip.fill(red);
strip.show();
}
void FX2(){
colors();
strip.fill(blue);
strip.show();
}