//save what you see right now to old_frame for playing with it later void copy_led_array_to_old_frame(){ for(int i = 0; i < NUM_LEDS; i++ ) { old_frame[i][0] = leds[i].r; old_frame[i][1] = leds[i].g; old_frame[i][2] = leds[i].b; } }

//save what you see right now to old_frame for playing with it later void copy_led_array_to_old_frame(){ for(int i = 0; i < NUM_LEDS; i++ ) { old_frame[i][0] = leds[i].r; old_frame[i][1] = leds[i].g; old_frame[i][2] = leds[i].b; } }

//save what you see right now to old_frame for playing with it later void copy_led_array_to_old_frame(){ for(int i = 0; i < NUM_LEDS; i++ ) { old_frame[i][0] = leds[i].r; old_frame[i][1] = leds[i].g; old_frame[i][2] = leds[i].b; } }

//fade to new content over a numer of steps with wait_ms delay between the stepsvoid fade_from_old_to_new_frame(int steps, int wait_ms){ for(int a=0; a < steps; a++){ // over the steps for(int b=0; b < NUM_LEDS; b++){ // over the whole lenght