FastLED  3.1
colorpalettes.cpp
1 #ifndef __INC_COLORPALETTES_H
2 #define __INC_COLORPALETTES_H
3 #define FASTLED_INTERNAL
4 #include "FastLED.h"
5 #include "colorutils.h"
6 #include "colorpalettes.h"
7 
8 FASTLED_USING_NAMESPACE
9 
10 
11 // Preset color schemes, such as they are.
12 
13 // These schemes are all declared as "PROGMEM", meaning
14 // that they won't take up SRAM on AVR chips until used.
15 // Furthermore, the compiler won't even include these
16 // in your PROGMEM (flash) storage unless you specifically
17 // use each one, so you only 'pay for' those you actually use.
18 
19 
20 extern const TProgmemRGBPalette16 CloudColors_p FL_PROGMEM =
21 {
22  CRGB::Blue,
23  CRGB::DarkBlue,
24  CRGB::DarkBlue,
25  CRGB::DarkBlue,
26 
27  CRGB::DarkBlue,
28  CRGB::DarkBlue,
29  CRGB::DarkBlue,
30  CRGB::DarkBlue,
31 
32  CRGB::Blue,
33  CRGB::DarkBlue,
34  CRGB::SkyBlue,
35  CRGB::SkyBlue,
36 
37  CRGB::LightBlue,
38  CRGB::White,
39  CRGB::LightBlue,
40  CRGB::SkyBlue
41 };
42 
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 };
64 
65 
66 extern const TProgmemRGBPalette16 OceanColors_p FL_PROGMEM =
67 {
68  CRGB::MidnightBlue,
69  CRGB::DarkBlue,
70  CRGB::MidnightBlue,
71  CRGB::Navy,
72 
73  CRGB::DarkBlue,
74  CRGB::MediumBlue,
75  CRGB::SeaGreen,
76  CRGB::Teal,
77 
78  CRGB::CadetBlue,
79  CRGB::Blue,
80  CRGB::DarkCyan,
81  CRGB::CornflowerBlue,
82 
83  CRGB::Aquamarine,
84  CRGB::SeaGreen,
85  CRGB::Aqua,
86  CRGB::LightSkyBlue
87 };
88 
89 extern const TProgmemRGBPalette16 ForestColors_p FL_PROGMEM =
90 {
91  CRGB::DarkGreen,
92  CRGB::DarkGreen,
93  CRGB::DarkOliveGreen,
94  CRGB::DarkGreen,
95 
96  CRGB::Green,
97  CRGB::ForestGreen,
98  CRGB::OliveDrab,
99  CRGB::Green,
100 
101  CRGB::SeaGreen,
102  CRGB::MediumAquamarine,
103  CRGB::LimeGreen,
104  CRGB::YellowGreen,
105 
106  CRGB::LightGreen,
107  CRGB::LawnGreen,
108  CRGB::MediumAquamarine,
109  CRGB::ForestGreen
110 };
111 
113 extern const TProgmemRGBPalette16 RainbowColors_p FL_PROGMEM =
114 {
115  0xFF0000, 0xD52A00, 0xAB5500, 0xAB7F00,
116  0xABAB00, 0x56D500, 0x00FF00, 0x00D52A,
117  0x00AB55, 0x0056AA, 0x0000FF, 0x2A00D5,
118  0x5500AB, 0x7F0081, 0xAB0055, 0xD5002B
119 };
120 
122 #define RainbowStripesColors_p RainbowStripeColors_p
123 extern const TProgmemRGBPalette16 RainbowStripeColors_p FL_PROGMEM =
124 {
125  0xFF0000, 0x000000, 0xAB5500, 0x000000,
126  0xABAB00, 0x000000, 0x00FF00, 0x000000,
127  0x00AB55, 0x000000, 0x0000FF, 0x000000,
128  0x5500AB, 0x000000, 0xAB0055, 0x000000
129 };
130 
135 extern const TProgmemRGBPalette16 PartyColors_p FL_PROGMEM =
136 {
137  0x5500AB, 0x84007C, 0xB5004B, 0xE5001B,
138  0xE81700, 0xB84700, 0xAB7700, 0xABAB00,
139  0xAB5500, 0xDD2200, 0xF2000E, 0xC2003E,
140  0x8F0071, 0x5F00A1, 0x2F00D0, 0x0007F9
141 };
142 
149 extern const TProgmemRGBPalette16 HeatColors_p FL_PROGMEM =
150 {
151  0x000000,
152  0x330000, 0x660000, 0x990000, 0xCC0000, 0xFF0000,
153  0xFF3300, 0xFF6600, 0xFF9900, 0xFFCC00, 0xFFFF00,
154  0xFFFF33, 0xFFFF66, 0xFFFF99, 0xFFFFCC, 0xFFFFFF
155 };
156 
157 
158 // Gradient palette "Rainbow_gp",
159 // provided for situations where you're going
160 // to use a number of other gradient palettes, AND
161 // you want a 'standard' FastLED rainbow as well.
162 
163 DEFINE_GRADIENT_PALETTE( Rainbow_gp ) {
164  0, 255, 0, 0, // Red
165  32, 171, 85, 0, // Orange
166  64, 171,171, 0, // Yellow
167  96, 0,255, 0, // Green
168  128, 0,171, 85, // Aqua
169  160, 0, 0,255, // Blue
170  192, 85, 0,171, // Purple
171  224, 171, 0, 85, // Pink
172  255, 255, 0, 0};// and back to Red
173 
174 #endif
contains definitions for the predefined color palettes supplied by FastLED.
central include file for FastLED, defines the CFastLED class/object
functions for color fill, paletters, blending, and more
FASTLED_USING_NAMESPACE const TProgmemRGBPalette16 CloudColors_p FL_PROGMEM
HSV Rainbow.