This sketch shows how to fade 3 RGB leds using the analogWrite() function and a sampling of the color.