PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

85 rindas
2.5KB

  1. #ifndef __INC_COLOR_H
  2. #define __INC_COLOR_H
  3. #include "FastLED.h"
  4. FASTLED_NAMESPACE_BEGIN
  5. ///@file color.h
  6. /// contains definitions for color correction and temperature
  7. ///@defgroup ColorEnums Color correction/temperature
  8. /// definitions for color correction and light temperatures
  9. ///@{
  10. typedef enum {
  11. // Color correction starting points
  12. /// typical values for SMD5050 LEDs
  13. ///@{
  14. TypicalSMD5050=0xFFB0F0 /* 255, 176, 240 */,
  15. TypicalLEDStrip=0xFFB0F0 /* 255, 176, 240 */,
  16. ///@}
  17. /// typical values for 8mm "pixels on a string"
  18. /// also for many through-hole 'T' package LEDs
  19. ///@{
  20. Typical8mmPixel=0xFFE08C /* 255, 224, 140 */,
  21. TypicalPixelString=0xFFE08C /* 255, 224, 140 */,
  22. ///@}
  23. /// uncorrected color
  24. UncorrectedColor=0xFFFFFF
  25. } LEDColorCorrection;
  26. typedef enum {
  27. /// @name Black-body radiation light sources
  28. /// Black-body radiation light sources emit a (relatively) continuous
  29. /// spectrum, and can be described as having a Kelvin 'temperature'
  30. ///@{
  31. /// 1900 Kelvin
  32. Candle=0xFF9329 /* 1900 K, 255, 147, 41 */,
  33. /// 2600 Kelvin
  34. Tungsten40W=0xFFC58F /* 2600 K, 255, 197, 143 */,
  35. /// 2850 Kelvin
  36. Tungsten100W=0xFFD6AA /* 2850 K, 255, 214, 170 */,
  37. /// 3200 Kelvin
  38. Halogen=0xFFF1E0 /* 3200 K, 255, 241, 224 */,
  39. /// 5200 Kelvin
  40. CarbonArc=0xFFFAF4 /* 5200 K, 255, 250, 244 */,
  41. /// 5400 Kelvin
  42. HighNoonSun=0xFFFFFB /* 5400 K, 255, 255, 251 */,
  43. /// 6000 Kelvin
  44. DirectSunlight=0xFFFFFF /* 6000 K, 255, 255, 255 */,
  45. /// 7000 Kelvin
  46. OvercastSky=0xC9E2FF /* 7000 K, 201, 226, 255 */,
  47. /// 20000 Kelvin
  48. ClearBlueSky=0x409CFF /* 20000 K, 64, 156, 255 */,
  49. ///@}
  50. /// @name Gaseous light sources
  51. /// Gaseous light sources emit discrete spectral bands, and while we can
  52. /// approximate their aggregate hue with RGB values, they don't actually
  53. /// have a proper Kelvin temperature.
  54. ///@{
  55. WarmFluorescent=0xFFF4E5 /* 0 K, 255, 244, 229 */,
  56. StandardFluorescent=0xF4FFFA /* 0 K, 244, 255, 250 */,
  57. CoolWhiteFluorescent=0xD4EBFF /* 0 K, 212, 235, 255 */,
  58. FullSpectrumFluorescent=0xFFF4F2 /* 0 K, 255, 244, 242 */,
  59. GrowLightFluorescent=0xFFEFF7 /* 0 K, 255, 239, 247 */,
  60. BlackLightFluorescent=0xA700FF /* 0 K, 167, 0, 255 */,
  61. MercuryVapor=0xD8F7FF /* 0 K, 216, 247, 255 */,
  62. SodiumVapor=0xFFD1B2 /* 0 K, 255, 209, 178 */,
  63. MetalHalide=0xF2FCFF /* 0 K, 242, 252, 255 */,
  64. HighPressureSodium=0xFFB74C /* 0 K, 255, 183, 76 */,
  65. ///@}
  66. /// Uncorrected temperature 0xFFFFFF
  67. UncorrectedTemperature=0xFFFFFF
  68. } ColorTemperature;
  69. FASTLED_NAMESPACE_END
  70. ///@}
  71. #endif