Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Guyer <sam.guyer@gmail.com>2020-06-14 05:15:40 +0300
committerSam Guyer <sam.guyer@gmail.com>2020-06-14 05:15:40 +0300
commitcb435ef80603d8b59dff5fc589071abcffaaaedf (patch)
tree8544e26112fed751c18db064a415989c34b435a3 /src/colorpalettes.h
parentb70d8689c0451a742689899ad103bc0e7851d857 (diff)
Restructure for 1.5.x Arduino libraries: all of the code goes under the src directory
Diffstat (limited to 'src/colorpalettes.h')
-rw-r--r--src/colorpalettes.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/colorpalettes.h b/src/colorpalettes.h
new file mode 100644
index 00000000..4458575e
--- /dev/null
+++ b/src/colorpalettes.h
@@ -0,0 +1,57 @@
+#ifndef __INC_COLORPALETTES_H
+#define __INC_COLORPALETTES_H
+
+#include "FastLED.h"
+#include "colorutils.h"
+
+///@file colorpalettes.h
+/// contains definitions for the predefined color palettes supplied by FastLED.
+
+FASTLED_NAMESPACE_BEGIN
+
+///@defgroup Colorpalletes Pre-defined color palletes
+/// These schemes are all declared as "PROGMEM", meaning
+/// that they won't take up SRAM on AVR chips until used.
+/// Furthermore, the compiler won't even include these
+/// in your PROGMEM (flash) storage unless you specifically
+/// use each one, so you only 'pay for' those you actually use.
+
+///@{
+
+/// Cloudy color pallete
+extern const TProgmemRGBPalette16 CloudColors_p FL_PROGMEM;
+/// Lava colors
+extern const TProgmemRGBPalette16 LavaColors_p FL_PROGMEM;
+/// Ocean colors, blues and whites
+extern const TProgmemRGBPalette16 OceanColors_p FL_PROGMEM;
+/// Forest colors, greens
+extern const TProgmemRGBPalette16 ForestColors_p FL_PROGMEM;
+
+/// HSV Rainbow
+extern const TProgmemRGBPalette16 RainbowColors_p FL_PROGMEM;
+
+#define RainbowStripesColors_p RainbowStripeColors_p
+/// HSV Rainbow colors with alternatating stripes of black
+extern const TProgmemRGBPalette16 RainbowStripeColors_p FL_PROGMEM;
+
+/// HSV color ramp: blue purple ping red orange yellow (and back)
+/// Basically, everything but the greens, which tend to make
+/// people's skin look unhealthy. This palette is good for
+/// lighting at a club or party, where it'll be shining on people.
+extern const TProgmemRGBPalette16 PartyColors_p FL_PROGMEM;
+
+/// Approximate "black body radiation" palette, akin to
+/// the FastLED 'HeatColor' function.
+/// Recommend that you use values 0-240 rather than
+/// the usual 0-255, as the last 15 colors will be
+/// 'wrapping around' from the hot end to the cold end,
+/// which looks wrong.
+extern const TProgmemRGBPalette16 HeatColors_p FL_PROGMEM;
+
+
+DECLARE_GRADIENT_PALETTE( Rainbow_gp);
+
+FASTLED_NAMESPACE_END
+
+///@}
+#endif