Pink LED Fade

Hello Arduino!!!

So the love season is comin. And I gotta make something for my girlfriend. I've got everything except this, I want my leds to fade through colors. I want the LEDs to fade through these colors http://www.tayloredmktg.com/rgb/#PI

This is my code that i have already and right now they aren't really doing much, they faded up but now they are stuck there. I just want the leds to fade through those pink colors.

Any help?

#include "tlc_config.h"
#include "Tlc5940.h"
#include "tlc_fades.h"

int R = 300;
int R1 = 300;
int R2 = 300;
int R3 = 300;
int R4 = 300;
int R5 = 300;

int G = 0;
int G1 = 0;
int G2 = 0;
int G3 = 0;
int G4 = 0;
int G5 = 0;

int B = 0;

int B2 = 0;
int B3 = 0;
int B4 = 0;
int B5 = 0;

int Reg = 0;

int RLast = 0;
int GLast = 0;
int BLast = 0;
int RegLast = 0;


void setup()
{
  /* Tlc.init() has to be called before using any of the library functions */
  Tlc.init();
}

void loop()
{
  if(tlc_fadeBufferSize == 0)
    {
      //Start fade
      RLast = R;
      GLast = G;
      BLast = B;
      RegLast = Reg;
      
      //End fade
      R = 400;
      R1 = 400;
      R2 = 400;
      R3 = 400;
      R4 = 400;
      R5 = 400;
      
      G = random(2000,3095);
      G1 = random(2000,3095);
      G2 = random(2000,3095);
      G3 = random(2000,3095);
      G4 = random(2000,3095);
      G5 = random(2000,3095);
      
      B = random(0,2000);
  
      B2 = random(2000,4095); 
      B3 = random(2000,4095); 
      B4 = random(2000,4095); 
      B5 = random(2000,4095); 
      
      Reg = random(4095);
   
      uint16_t duration = random(1500,2000);
      uint32_t startMillis = millis() + 50;
      uint32_t endMillis = startMillis + duration;
   
      tlc_addFade(0, BLast, B, startMillis, endMillis);
      tlc_addFade(1, GLast, G1, startMillis, endMillis);
      tlc_addFade(2, RLast, R1, startMillis, endMillis);

      tlc_addFade(3, BLast, B2, startMillis, endMillis);
      tlc_addFade(4, GLast, G2, startMillis, endMillis);
      tlc_addFade(5, RLast, R2, startMillis, endMillis);

      tlc_addFade(6, BLast, B3, startMillis, endMillis);
      tlc_addFade(7, GLast, G3, startMillis, endMillis);
      tlc_addFade(8, RLast, R3, startMillis, endMillis);

      tlc_addFade(9, BLast, B4, startMillis, endMillis);
      tlc_addFade(10, GLast, G4, startMillis, endMillis);
      tlc_addFade(11, RLast, R4, startMillis, endMillis);

      tlc_addFade(12, BLast, B5, startMillis, endMillis);
      tlc_addFade(13, GLast, G5, startMillis, endMillis);
      tlc_addFade(14, RLast, R5, startMillis, endMillis);
      
      tlc_addFade(15, RegLast, Reg, startMillis, endMillis);

      tlc_updateFades();

      tlc_addFade(0, B, BLast, startMillis, endMillis);
      tlc_addFade(1, G1, GLast, startMillis, endMillis);
      tlc_addFade(2, R1, RLast, startMillis, endMillis);

      tlc_addFade(3, B2, BLast, startMillis, endMillis);
      tlc_addFade(4, G2, GLast, startMillis, endMillis);
      tlc_addFade(5, R2, RLast, startMillis, endMillis);

      tlc_addFade(6, B3, BLast, startMillis, endMillis);
      tlc_addFade(7, G3, GLast, startMillis, endMillis);
      tlc_addFade(8, R3, RLast, startMillis, endMillis);

      tlc_addFade(9, B4, BLast, startMillis, endMillis);
      tlc_addFade(10, G4, GLast, startMillis, endMillis);
      tlc_addFade(11, R4, RLast, startMillis, endMillis);

      tlc_addFade(12, B5, BLast, startMillis, endMillis);
      tlc_addFade(13, G5, GLast, startMillis, endMillis);
      tlc_addFade(14, R5, RLast, startMillis, endMillis);
      
      tlc_addFade(15, Reg, RegLast, startMillis, endMillis);
      
      tlc_updateFades();
  }
}

Anybody?

OK The colours you want are all reddish, bluish, purplish -- they're variations and combinations of red and/or blue, and no green at all. So, how does it go if you eliminate all instances of "G", "GLast", etc.?

You need green to make pink, by looking at the hex triplets on that page you can see there is plenty of green needed. Otherwise all you get is blue, magenta, and red. The OP's question is more about program flow than about colors or LEDs. And program flow problems there are...the TLC library won't sequentially do a bunch of colors you put in there, you need a way to set up a fade, wait for completion, and then move to the next one. Right now there is nothing to do that at all.

macegr: You need green to make pink, by looking at the hex triplets on that page you can see there is plenty of green needed. Otherwise all you get is blue, magenta, and red.

"No way" to the former, and, "too true" to the latter.

De en.wikipedia.org/wiki/pink: Pink is any of the colours between bluish red (purple) to red, of medium to high brightness and of low to moderate saturation. ...Although pink is roughly considered just as a tint of red, in fact most variations of pink lie between red, white and magenta colors. This means that the pink's hue is somewhat between red and magenta

I stand by my previous statement, they're combinations of saturation levels of red and/or blue. They may not all be possible with LEDs anyway.

Adding -- http://en.wikipedia.org/wiki/File:CIE1931simple.png

My question is more so how do i take these codes that go from 0 to 255 in terms of color and put it in a way that is 4095 to 0. Like i just dont get it! could somebody help me with those conversions.

Multiply by sixteen and subtract it from 4095.

Or use function map(): http://arduino.cc/en/Reference/Map

runaway_pancake: De en.wikipedia.org/wiki/pink: Pink is any of the colours between bluish red (purple) to red, of medium to high brightness and of low to moderate saturation. ...Although pink is roughly considered just as a tint of red, in fact most variations of pink lie between red, white and magenta colors. This means that the pink's hue is somewhat between red and magenta

I stand by my previous statement, they're combinations of saturation levels of red and/or blue. They may not all be possible with LEDs anyway.

You can't get white, or adjust the saturation of an RGB triplet, without using green. Seriously, just look at the HTML hex triplets listed for the various colors the OP indicated. Green is in there. Get a magnifying glass and look at white and pink colors on your screen...green is there. The only other way to get around it would be to use a white LED instead of a green one.