Hello,
Does anyone know how to get different “tones” of colors from 1 color?
Ex: getting different tones of green from “green color”.
Hello,
Does anyone know how to get different “tones” of colors from 1 color?
Ex: getting different tones of green from “green color”.
I’d recommend working with HSV colors, and varying the Saturation and Value:
CHSV( HUE_GREEN, 255, 255) is plain green
CHSV( HUE_GREEN, 255, 100) is darker green
CHSV( HUE_GREEN, 100, 255) is pastel green (less saturated = adds more ‘white’ = more ‘pale’ but also brighter light… try it)
The section on this page https://github.com/FastLED/FastLED/wiki/Pixel-reference that discusses HSV colors may be helpful.
Also take a look at https://github.com/FastLED/FastLED/wiki/FastLED-HSV-Colors and the Wikipedia page for HSV colors: https://en.m.wikipedia.org/wiki/HSL_and_HSV
In FastLED, you can use a “CHSV” color object pretty much any place you can use a CRGB color object:
leds[i] = CHSV( HUE_GREEN, 100, 255);
I told you before about using your color palette?