Crossfading LEDS

ok so how would I cross fade custom rgb colors

so like I have a green and want to cross-fade it to a pink? how would I do that?

You have to use PWM and mix the 3 basic colors in different ratio. Suppose, you have a CC RGB LED. You want to make magenta color, the respective arduino code will be,

      analogWrite(redPin,100);
      analogWrite(greenPin,0);
      analogWrite(bluePin,5);