Newbie needs assistance

thanks dhenry.

Can you give me a working example of fading one led off while another fades on?

i cant seem to find a decent example that makes sense.

I've got stages 1 2 and 3 written up and was going to start working on the fading effects of the LEDS that need it but struggling to put it together.

Like this for example

void stage3_warp_power(void) {
    DIGITAL_ON(SHUTTLEBAYDOORS)
    delay (duration_5s)
    DIGITAL_OFF(SHUTTLEBAYDOORS)
    delay (duration_2s)
    DIGITAL_ON(DEFLECTORBLUE);
    DIGITAL_ON(IMPULSEORANGE);
    DIGITAL_ON(NECELLS

the deflector needs to fade from

DIGITAL_ON(DEFLECTORORANGE)

TO

DIGITAL_ON(DEFLECTORBLUE)

Just not sure how to assemble that. the 2 colors are on different pins.