Use google color picker to pick colors
Color matters and you can use the google color picker to pick colors. Use the Red, Green and Blue values in your code.
#include "FastLED.h"
// How many leds in your strip?
#define NUM_LEDS 13
#define DATA_PIN 2
// Define the array of leds
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}
void loop() {
for (int i = 0; i < NUM_LEDS; i = i + 1)
{
leds[i] = blend( CRGB(255,0,0), CRGB(0,255,0), (i*255)/(NUM_LEDS*255));
}
/* leds[0] = blend( CRGB(255,0,0), CRGB(0,255,0), 0);
leds[1] = blend( CRGB(255,0,0), CRGB(0,255,0), 128);
leds[2] = blend( CRGB(255,0,0), CRGB(0,255,0), 255);*/
FastLED.show();
}