int rb1;
int rb2;
int rb3;
int rb4;
int rb5;
void setup() {
  // put your setup code here, to run once:
pinMode(3, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
void loop() {
  // put your main code here, to run repeatedly:
for(int rb1 = 0; rb1 <= 255; rb1++)
{
  analogWrite(3, 255);
  analogWrite(5, rb1);
  analogWrite(6, 0);
  delay(1);
}
for(int rb2 = 255; rb2 >=0 ; rb2--)
{
  analogWrite(3, rb2);
  analogWrite(5, 255);
  analogWrite(6, 0);
  delay(1);
}
for(int rb3 = 0; rb3 <= 255; rb3++)
{
  analogWrite(3, 0);
  analogWrite(5, 255);
  analogWrite(6, rb3);
  delay(1);
}
for(int rb4 = 255; rb4 >=0 ; rb4--)
{
  analogWrite(3, 0);
  analogWrite(5, rb4);
  analogWrite(6, 255);
  delay(1);
}
for(int rb5 = 0; rb5 <= 255; rb5++)
{
  analogWrite(3, rb5);
  analogWrite(5, 0);
  analogWrite(6, 255);
  delay(1);
}
for(int rb6 = 255; rb6 >=0 ; rb6--)
{
  analogWrite(3, 255);
  analogWrite(5, 0);
  analogWrite(6, rb6);
  delay(1);
}
}