Mood Lamp using RGB LEDs on eNTuino + SensIO

It all looks exciting when the LEDs start blinking. How about creating a mesmerizing effect using the RGB (Red Green Blue) LEDs rather than just blinking them. Refer the source code below to create this effect using the RGB LEDs on the SensIO shield, eNTuino 328 and the Arduino IDE.

/*
Name: RGB Mood Lamp using eNTuino and SensIO

Coder: DragonRacer

Company: ENTESLA, INDIA

Hardware: eNTuino and SensIO

Description: This code demomstrates the magic (for the n00b) that can 
be created using RGB LEDs. Shades of Blue,Violet,Red,Yellow,Green,Teal
are generated with smooth transition between them.
 
The circuit:
* SENSIO shield used
* JP13,JP14,JP15 connected.
* RGB LED connected to digital pin 9,10,11. 

*/

#define REDPIN 9
#define GREENPIN 10
#define BLUEPIN 11

#define FADESPEED 10 // make this higher to slow down

void setup() {
  pinMode(REDPIN, OUTPUT);
  pinMode(GREENPIN, OUTPUT);
  pinMode(BLUEPIN, OUTPUT);

  analogWrite(REDPIN, 0);
  analogWrite(GREENPIN, 0);
  analogWrite(BLUEPIN, 255);
}

void loop() {
  int r, g, b;

  // fade from blue to violet
  for (r = 0; r < 256; r++) {
    analogWrite(REDPIN, r);
    delay(FADESPEED);
  }
  // fade from violet to red
  for (b = 255; b > 0; b--) {
    analogWrite(BLUEPIN, b);
    delay(FADESPEED);
  }
  // fade from red to yellow
  for (g = 0; g < 256; g++) {
    analogWrite(GREENPIN, g);
    delay(FADESPEED);
  }
  // fade from yellow to green
  for (r = 255; r > 0; r--) {
    analogWrite(REDPIN, r);
    delay(FADESPEED);
  }
  // fade from green to teal
  for (b = 0; b < 256; b++) {
    analogWrite(BLUEPIN, b);
    delay(FADESPEED);
  }
  // fade from teal to blue
  for (g = 255; g > 0; g--) {
    analogWrite(GREENPIN, g);
    delay(FADESPEED);
  }
}

MOOD LAMP using RGB LEDs on eNTuino and SensIO Shield