pot sweep of RGB colors?

does someone have a program that takes an analog input (from the sweep of a pot) and splits it to 3 RGB analog outputs for an RGB LED.

Basically I want to turn the pot and go through a range of colors on the LED.

THANKS!!!!

Simple method that should work. Don't forget current limit resistors.

int analogIn;
void setup(){
pinMode (3, OUTPUT);
pinMode (5, OUTPUT);
pinMode (6, OUTPUT);
}
void loop(){
analogIn = analogRead(A0) >>2; // 10 bit read into 8 bits for PWM use.
analogWrite (3, analogIn);
analogWrite (5, analogIn);
analogWrite (6, analogIn);
}

I have a thermistor program running on a t85 that changes an RGB LED based on the temperature (same concept as a variable resistor.)

Hot Yet?

snippet

 // 261 = 32F, 447 = 64F, 537 = 75F, 575 = 82F
  b = map(ADCcount, 261,  447, 100, 255 );
  g = map(ADCcount, 435,  574, 250, 100);  // overlap green & blue
  r = map(ADCcount, 575, 1023, 250,  50);

  if (ADCcount > 574)              // HOT: ADCcount goes up with increase temperature
    {
      // Show only Red when Hot with Red intensity increasing with temperature
      analogWrite(pinR,   r);
      analogWrite(pinG, 255);      // 255 = 100% High == NO LED Current Common Anode --> Vcc
      analogWrite(pinB, 255);      // Blue Off
    } else {                       // Cold to Cool transition with Blue fading into Green
      analogWrite(pinR, 255);      // Red Off
      analogWrite(pinG, g);
      analogWrite(pinB, b);        // Brighter Blue with colder temp
    }

Ray My Stuff