Hello! Please, give me link or write some words about palettes customization.
I’m understand this:
DEFINE_GRADIENT_PALETTE( ib_jul01_gp ) {
0, 194, 1, 1,
128, 1, 29, 18,
255, 113, 1, 1};
First column - it is “coordinates” from 0 to 255, where to put color. Color data - it is next 3 columns.
In example above: start(0) palette at zero position with RGB 194:1:1
In middle (128) - RGB value 1:29:18
At the end (255) - RGB value 113:1:1
All colors between this coordinates FastLED will calculate themselves.
I found another way to define custom pallete:
CRGBPalette16 gPal1_p = CRGBPalette16( CRGB::Black, CRGB::Blue, CRGB::Aqua, CRGB::White);
As I understand - I can put just FOUR colors. If I put more - there are compile errors.
But in FastLED source code pallettes definitions are make with one else more way:
http://fastled.io/docs/3.1/colorpalettes_8cpp_source.html
43 extern const TProgmemRGBPalette16 LavaColors_p FL_PROGMEM =
44 {
45 CRGB::Black,
46 CRGB::Maroon,
47 CRGB::Black,
48 CRGB::Maroon,
49
50 CRGB::DarkRed,
51 CRGB::Maroon,
52 CRGB::DarkRed,
53
54 CRGB::DarkRed,
55 CRGB::DarkRed,
56 CRGB::Red,
57 CRGB::Orange,
58
59 CRGB::White,
60 CRGB::Orange,
61 CRGB::Red,
62 CRGB::DarkRed
63 };
Here is 4 groups with 4 or 3 values group.
Please, tell me what is mean?
Aslo, I found one more way to define palettes:
const TProgmemRGBPalette16 gPal1_p FL_PROGMEM =
{
Ice_Blue1, Ice_Blue1, Ice_Blue1, Ice_Blue1,
Ice_Blue1, Ice_Blue1, Ice_Blue1, Ice_Blue1,
Ice_Blue1, Ice_Blue1, Ice_Blue1, Ice_Blue1,
Ice_Blue2, Ice_Blue2, Ice_Blue2, Ice_Blue3
};
Four groups and four values each.
How this will calculated in gradient from 0 to 255?
Thanks!