#define Red 9
#define Green 10
#define Blue 11
int i;

void setup()
{
  pinMode(Red, OUTPUT);
  pinMode(Blue, OUTPUT);
  pinMode(Green, OUTPUT);
}

void loop()
{
for (i = 0; i<=255; i +=25)
{
analogWrite(Blue, i);
analogWrite(Red, (255.0-i));
delay(1000);
}
for (i =255; i>=0; i-= 51)
{
  analogWrite(Blue, i);
  analogWrite(Red, (255.0-i));
  delay(1000);
}
}