PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.9KB

  1. #ifndef __INC_COLORPALETTES_H
  2. #define __INC_COLORPALETTES_H
  3. #include "FastLED.h"
  4. #include "colorutils.h"
  5. ///@file colorpalettes.h
  6. /// contains definitions for the predefined color palettes supplied by FastLED.
  7. FASTLED_NAMESPACE_BEGIN
  8. ///@defgroup Colorpalletes Pre-defined color palletes
  9. /// These schemes are all declared as "PROGMEM", meaning
  10. /// that they won't take up SRAM on AVR chips until used.
  11. /// Furthermore, the compiler won't even include these
  12. /// in your PROGMEM (flash) storage unless you specifically
  13. /// use each one, so you only 'pay for' those you actually use.
  14. ///@{
  15. /// Cloudy color pallete
  16. extern const TProgmemRGBPalette16 CloudColors_p FL_PROGMEM;
  17. /// Lava colors
  18. extern const TProgmemRGBPalette16 LavaColors_p FL_PROGMEM;
  19. /// Ocean colors, blues and whites
  20. extern const TProgmemRGBPalette16 OceanColors_p FL_PROGMEM;
  21. /// Forest colors, greens
  22. extern const TProgmemRGBPalette16 ForestColors_p FL_PROGMEM;
  23. /// HSV Rainbow
  24. extern const TProgmemRGBPalette16 RainbowColors_p FL_PROGMEM;
  25. #define RainbowStripesColors_p RainbowStripeColors_p
  26. /// HSV Rainbow colors with alternatating stripes of black
  27. extern const TProgmemRGBPalette16 RainbowStripeColors_p FL_PROGMEM;
  28. /// HSV color ramp: blue purple ping red orange yellow (and back)
  29. /// Basically, everything but the greens, which tend to make
  30. /// people's skin look unhealthy. This palette is good for
  31. /// lighting at a club or party, where it'll be shining on people.
  32. extern const TProgmemRGBPalette16 PartyColors_p FL_PROGMEM;
  33. /// Approximate "black body radiation" palette, akin to
  34. /// the FastLED 'HeatColor' function.
  35. /// Recommend that you use values 0-240 rather than
  36. /// the usual 0-255, as the last 15 colors will be
  37. /// 'wrapping around' from the hot end to the cold end,
  38. /// which looks wrong.
  39. extern const TProgmemRGBPalette16 HeatColors_p FL_PROGMEM;
  40. DECLARE_GRADIENT_PALETTE( Rainbow_gp);
  41. FASTLED_NAMESPACE_END
  42. ///@}
  43. #endif