106 #if defined(FL_IS_AVR)
123 : r(ir), g(ig), b(ib)
130 : r((colorcode >> 16) & 0xFF), g((colorcode >> 8) & 0xFF), b((colorcode >> 0) & 0xFF)
135 return u32(0xff000000) |
144 : r((colorcode >> 16) & 0xFF), g((colorcode >> 8) & 0xFF), b((colorcode >> 0) & 0xFF)
151 : r((colorcode >> 16) & 0xFF), g((colorcode >> 8) & 0xFF), b((colorcode >> 0) & 0xFF)
172 r = (colorcode >> 16) & 0xFF;
173 g = (colorcode >> 8) & 0xFF;
174 b = (colorcode >> 0) & 0xFF;
211 r = (colorcode >> 16) & 0xFF;
212 g = (colorcode >> 8) & 0xFF;
213 b = (colorcode >> 0) & 0xFF;
318 if( rhs.r > r) r = rhs.r;
319 if( rhs.g > g) g = rhs.g;
320 if( rhs.b > b) b = rhs.b;
336 if( rhs.r < r) r = rhs.r;
337 if( rhs.g < g) g = rhs.g;
338 if( rhs.b < b) b = rhs.b;
360 return u32(0xff000000) |
369 return CRGB(255 - r, 255 - g, 255 - b);
372#if (defined SmartMatrix_h || defined SmartMatrix3_h)
375 operator rgb24()
const {
400 if( green >
max)
max = green;
401 if( blue >
max)
max = blue;
405 u16 factor = ((u16)(limit) * 256) /
max;
406 red = (red * factor) / 256;
407 green = (green * factor) / 256;
408 blue = (blue * factor) / 256;
457 if( parity == curparity)
return;
461 if( (b > 0) && (b < 255)) {
462 if( r == g && g == b) {
467 }
else if( (r > 0) && (r < 255)) {
469 }
else if( (g > 0) && (g < 255)) {
472 if( r == g && g == b) {
481 if( r == g && g == b) {
491 if( r == g && g == b) {
735 return (lhs.r == rhs.r) && (lhs.g == rhs.g) && (lhs.b == rhs.b);
741 return !(lhs == rhs);
748 sl = lhs.r + lhs.g + lhs.b;
749 sr = rhs.r + rhs.g + rhs.b;
757 sl = lhs.r + lhs.g + lhs.b;
758 sr = rhs.r + rhs.g + rhs.b;
766 sl = lhs.r + lhs.g + lhs.b;
767 sr = rhs.r + rhs.g + rhs.b;
775 sl = lhs.r + lhs.g + lhs.b;
776 sr = rhs.r + rhs.g + rhs.b;
783 return CRGB( p1.r/d, p1.g/d, p1.b/d);
789 return CRGB( p1.r < p2.r ? p1.r : p2.r,
790 p1.g < p2.g ? p1.g : p2.g,
791 p1.b < p2.b ? p1.b : p2.b);
797 return CRGB( p1.r > p2.r ? p1.r : p2.r,
798 p1.g > p2.g ? p1.g : p2.g,
799 p1.b > p2.b ? p1.b : p2.b);
fl::UISlider scale("Scale", 4,.1, 4,.1)
ColorTemperature
Color temperature values.
LEDColorCorrection
Color correction starting points.
u16 fract16
ANSI: unsigned _Fract.
u8 fract8
Fixed-Point Fractional Types.
constexpr common_type_t< T, U > max(T a, U b) FL_NOEXCEPT
FASTLED_FORCE_INLINE CRGB operator&(const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
Combine two CRGB objects, taking the smallest value of each channel.
FASTLED_FORCE_INLINE CRGB operator*(const CRGB &p1, u8 d) FL_NOEXCEPT
Multiply each of the channels by a constant, saturating each channel at 0xFF.
FASTLED_FORCE_INLINE CRGB operator+(const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
Add one CRGB to another, saturating at 0xFF for each channel.
FASTLED_FORCE_INLINE CRGB operator-(const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
Subtract one CRGB from another, saturating at 0x00 for each channel.
FASTLED_FORCE_INLINE bool operator!=(const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
Check if two CRGB objects do not have the same color data.
FASTLED_FORCE_INLINE CRGB operator%(const CRGB &p1, u8 d) FL_NOEXCEPT
Scale using CRGB::nscale8_video()
FASTLED_FORCE_INLINE bool operator<(const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
Check if the sum of the color channels in one CRGB object is less than another.
FASTLED_FORCE_INLINE bool operator==(const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
Check if two CRGB objects have the same color data.
FASTLED_FORCE_INLINE bool operator>(const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
Check if the sum of the color channels in one CRGB object is greater than another.
FASTLED_FORCE_INLINE bool operator<=(const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
Check if the sum of the color channels in one CRGB object is less than or equal to another.
FASTLED_FORCE_INLINE CRGB operator/(const CRGB &p1, u8 d) FL_NOEXCEPT
Divide each of the channels by a constant.
FASTLED_FORCE_INLINE CRGB operator|(const CRGB &p1, const CRGB &p2) FL_NOEXCEPT
Combine two CRGB objects, taking the largest value of each channel.
FASTLED_FORCE_INLINE bool operator>=(const CRGB &lhs, const CRGB &rhs) FL_NOEXCEPT
Check if the sum of the color channels in one CRGB object is greater than or equal to another.
Base definition for an LED controller.
#define FASTLED_FORCE_INLINE
constexpr CRGB nscale8_constexpr(const CRGB scaledown) const FL_NOEXCEPT
FASTLED_FORCE_INLINE CRGB & operator-=(const CRGB &rhs) FL_NOEXCEPT
Subtract one CRGB from another, saturating at 0x00 for each channel.
FASTLED_FORCE_INLINE CRGB & operator&=(const CRGB &rhs) FL_NOEXCEPT
"and" operator brings each channel down to the lower of the two values
FASTLED_FORCE_INLINE CRGB & setColorCode(u32 colorcode) FL_NOEXCEPT
Allow assignment from 32-bit (really 24-bit) 0xRRGGBB color code.
FASTLED_FORCE_INLINE CRGB & operator|=(const CRGB &rhs) FL_NOEXCEPT
"or" operator brings each channel up to the higher of the two values
FASTLED_FORCE_INLINE CRGB scale8(u8 scaledown) const FL_NOEXCEPT
Return a CRGB object that is a scaled down version of this object.
CRGB colorBoost(EaseType saturation_function=EaseType::EASE_NONE, EaseType luminance_function=EaseType::EASE_NONE) const FL_NOEXCEPT
constexpr CRGB(LEDColorCorrection colorcode) FL_NOEXCEPT
Allow construction from a LEDColorCorrection enum.
FASTLED_FORCE_INLINE CRGB & addToRGB(u8 d) FL_NOEXCEPT
Add a constant to each channel, saturating at 0xFF.
FASTLED_FORCE_INLINE CRGB & operator--() FL_NOEXCEPT
Subtract a constant of '1' from each channel, saturating at 0x00.
u8 getLuma() const FL_NOEXCEPT
Get the "luma" of a CRGB object.
FASTLED_FORCE_INLINE CRGB & operator>>=(u8 d) FL_NOEXCEPT
Right shift each of the channels by a constant.
FASTLED_FORCE_INLINE u8 getParity() FL_NOEXCEPT
Returns 0 or 1, depending on the lowest bit of the sum of the color components.
FASTLED_FORCE_INLINE CRGB & fadeLightBy(u8 fadefactor) FL_NOEXCEPT
fadeLightBy is a synonym for nscale8_video(), as a fade instead of a scale
CRGB & operator+=(const CRGB &rhs) FL_NOEXCEPT
Add one CRGB to another, saturating at 0xFF for each channel.
FASTLED_FORCE_INLINE CRGB & operator*=(u8 d) FL_NOEXCEPT
Multiply each of the channels by a constant, saturating each channel at 0xFF.
static CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2) FL_NOEXCEPT
static CRGB blendAlphaMaxChannel(const CRGB &upper, const CRGB &lower) FL_NOEXCEPT
FASTLED_FORCE_INLINE void maximizeBrightness(u8 limit=255) FL_NOEXCEPT
Maximize the brightness of this CRGB object.
FASTLED_FORCE_INLINE CRGB & nscale(u8 scaledown) FL_NOEXCEPT
Generic scale — delegates to nscale8 for CRGB.
static CRGB computeAdjustment(u8 scale, const CRGB &colorCorrection, const CRGB &colorTemperature) FL_NOEXCEPT
Calculates the combined color adjustment to the LEDs at a given scale, color correction,...
FASTLED_FORCE_INLINE u8 getAverageLight() const FL_NOEXCEPT
Get the average of the R, G, and B values.
CRGB & setHSV(u8 hue, u8 sat, u8 val) FL_NOEXCEPT
Allow assignment from hue, saturation, and value.
FASTLED_FORCE_INLINE CRGB lerp16(const CRGB &other, fract16 frac) const FL_NOEXCEPT
Return a new CRGB object after performing a linear interpolation between this object and the passed i...
static void upscale(const CRGB *src, const XYMap &srcXY, CRGB *dst, const XYMap &dstXY) FL_NOEXCEPT
constexpr CRGB(u32 colorcode) FL_NOEXCEPT
Allow construction from 32-bit (really 24-bit) bit 0xRRGGBB color code.
FASTLED_FORCE_INLINE CRGB & operator%=(u8 scaledown) FL_NOEXCEPT
%= is a synonym for nscale8_video().
FASTLED_FORCE_INLINE CRGB & operator=(const CRGB &rhs) FL_NOEXCEPT=default
Allow assignment from one RGB struct to another.
constexpr CRGB(u8 ir, u8 ig, u8 ib) FL_NOEXCEPT
Allow construction from red, green, and blue.
CRGB & nscale8(u8 scaledown) FL_NOEXCEPT
Scale down a RGB to N/256ths of its current brightness, using "plain math" dimming rules.
constexpr CRGB(ColorTemperature colorcode) FL_NOEXCEPT
Allow construction from a ColorTemperature enum.
CRGB & fadeToBlackBy(u8 fadefactor) FL_NOEXCEPT
fadeToBlackBy is a synonym for nscale8(), as a fade instead of a scale
static void downscale(const CRGB *src, const XYMap &srcXY, CRGB *dst, const XYMap &dstXY) FL_NOEXCEPT
Downscale a CRGB matrix (or strip) to the smaller size.
string toString() const FL_NOEXCEPT
FASTLED_FORCE_INLINE u8 & operator[](u8 x) FL_NOEXCEPT
Array access operator to index into the CRGB object.
constexpr CRGB operator-() const FL_NOEXCEPT
Invert each channel.
FASTLED_FORCE_INLINE CRGB() FL_NOEXCEPT
Default constructor.
HTMLColorCode
Predefined RGB colors.
@ Yellow2
TCL yellow variant 2 <div style='background:#EEEE00;width:4em;height:4em;'></div>.
@ Silver
<div style='background:#C0C0C0;width:4em;height:4em;'></div>
@ DarkKhaki
<div style='background:#BDB76B;width:4em;height:4em;'></div>
@ GreenYellow
<div style='background:#ADFF2F;width:4em;height:4em;'></div>
@ Chartreuse
<div style='background:#7FFF00;width:4em;height:4em;'></div>
@ Gray100
TCL grayscale 100% <div style='background:#FFFFFF;width:4em;height:4em;'></div>.
@ Khaki
<div style='background:#F0E68C;width:4em;height:4em;'></div>
@ LightGreen
<div style='background:#90EE90;width:4em;height:4em;'></div>
@ PowderBlue
<div style='background:#B0E0E6;width:4em;height:4em;'></div>
@ DarkOrange
<div style='background:#FF8C00;width:4em;height:4em;'></div>
@ FireBrick
<div style='background:#B22222;width:4em;height:4em;'></div>
@ DarkGreen
<div style='background:#006400;width:4em;height:4em;'></div>
@ SeaGreen
<div style='background:#2E8B57;width:4em;height:4em;'></div>
@ Orange1
TCL orange variant 1 <div style='background:#FFA500;width:4em;height:4em;'></div>.
@ Lime
<div style='background:#00FF00;width:4em;height:4em;'></div>
@ BurlyWood
<div style='background:#DEB887;width:4em;height:4em;'></div>
@ Cyan2
TCL cyan variant 2 <div style='background:#00EEEE;width:4em;height:4em;'></div>.
@ DarkTurquoise
<div style='background:#00CED1;width:4em;height:4em;'></div>
@ MediumOrchid
<div style='background:#BA55D3;width:4em;height:4em;'></div>
@ DeepPink2
TCL deep pink variant 2 <div style='background:#EE1289;width:4em;height:4em;'></div>.
@ Amethyst
<div style='background:#9966CC;width:4em;height:4em;'></div>
@ Yellow4
TCL yellow variant 4 <div style='background:#8B8B00;width:4em;height:4em;'></div>.
@ Salmon
<div style='background:#FA8072;width:4em;height:4em;'></div>
@ LightCoral
<div style='background:#F08080;width:4em;height:4em;'></div>
@ Plaid
<div style='background:#CC5533;width:4em;height:4em;'></div>
@ Magenta3
TCL magenta variant 3 <div style='background:#CD00CD;width:4em;height:4em;'></div>.
@ PaleGoldenrod
<div style='background:#EEE8AA;width:4em;height:4em;'></div>
@ Grey50
TCL grayscale 50% <div style='background:#7F7F7F;width:4em;height:4em;'></div>.
@ MediumTurquoise
<div style='background:#48D1CC;width:4em;height:4em;'></div>
@ FairyLight
<div style='background:#FFE42D;width:4em;height:4em;'></div>
@ Chocolate
<div style='background:#D2691E;width:4em;height:4em;'></div>
@ MidnightBlue
<div style='background:#191970;width:4em;height:4em;'></div>
@ LightSteelBlue
<div style='background:#B0C4DE;width:4em;height:4em;'></div>
@ DarkViolet
<div style='background:#9400D3;width:4em;height:4em;'></div>
@ Seashell
<div style='background:#FFF5EE;width:4em;height:4em;'></div>
@ LightYellow
<div style='background:#FFFFE0;width:4em;height:4em;'></div>
@ ForestGreen
<div style='background:#228B22;width:4em;height:4em;'></div>
@ DodgerBlue
<div style='background:#1E90FF;width:4em;height:4em;'></div>
@ Magenta
<div style='background:#FF00FF;width:4em;height:4em;'></div>
@ Gold2
TCL gold variant 2 <div style='background:#EEC900;width:4em;height:4em;'></div>.
@ Magenta4
TCL magenta variant 4 <div style='background:#8B008B;width:4em;height:4em;'></div>.
@ Magenta2
TCL magenta variant 2 <div style='background:#EE00EE;width:4em;height:4em;'></div>.
@ Green
<div style='background:#008000;width:4em;height:4em;'></div>
@ Green3
TCL green variant 3 <div style='background:#00CD00;width:4em;height:4em;'></div>.
@ Gray0
TCL grayscale 0% <div style='background:#000000;width:4em;height:4em;'></div>.
@ PeachPuff
<div style='background:#FFDAB9;width:4em;height:4em;'></div>
@ WhiteSmoke
<div style='background:#F5F5F5;width:4em;height:4em;'></div>
@ OliveDrab
<div style='background:#6B8E23;width:4em;height:4em;'></div>
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
@ DarkGoldenrod
<div style='background:#B8860B;width:4em;height:4em;'></div>
@ LightSlateGray
<div style='background:#778899;width:4em;height:4em;'></div>
@ OrangeRed
<div style='background:#FF4500;width:4em;height:4em;'></div>
@ Red3
TCL red variant 3 <div style='background:#CD0000;width:4em;height:4em;'></div>.
@ Orchid
<div style='background:#DA70D6;width:4em;height:4em;'></div>
@ Crimson
<div style='background:#DC143C;width:4em;height:4em;'></div>
@ Coral
<div style='background:#FF7F50;width:4em;height:4em;'></div>
@ SkyBlue
<div style='background:#87CEEB;width:4em;height:4em;'></div>
@ Red2
TCL red variant 2 <div style='background:#EE0000;width:4em;height:4em;'></div>.
@ Fuchsia
<div style='background:#FF00FF;width:4em;height:4em;'></div>
@ AliceBlue
<div style='background:#F0F8FF;width:4em;height:4em;'></div>
@ MintCream
<div style='background:#F5FFFA;width:4em;height:4em;'></div>
@ MediumSeaGreen
<div style='background:#3CB371;width:4em;height:4em;'></div>
@ Gold
<div style='background:#FFD700;width:4em;height:4em;'></div>
@ LightGrey
<div style='background:#D3D3D3;width:4em;height:4em;'></div>
@ Moccasin
<div style='background:#FFE4B5;width:4em;height:4em;'></div>
@ MediumVioletRed
<div style='background:#C71585;width:4em;height:4em;'></div>
@ OldLace
<div style='background:#FDF5E6;width:4em;height:4em;'></div>
@ Peru
<div style='background:#CD853F;width:4em;height:4em;'></div>
@ Gold4
TCL gold variant 4 <div style='background:#8B7500;width:4em;height:4em;'></div>.
@ Cornsilk
<div style='background:#FFF8DC;width:4em;height:4em;'></div>
@ PaleVioletRed
<div style='background:#DB7093;width:4em;height:4em;'></div>
@ RosyBrown
<div style='background:#BC8F8F;width:4em;height:4em;'></div>
@ DarkSlateGray
<div style='background:#2F4F4F;width:4em;height:4em;'></div>
@ Blue2
TCL blue variant 2 <div style='background:#0000EE;width:4em;height:4em;'></div>.
@ Gray75
TCL grayscale 75% <div style='background:#BFBFBF;width:4em;height:4em;'></div>.
@ Bisque
<div style='background:#FFE4C4;width:4em;height:4em;'></div>
@ DeepPink3
TCL deep pink variant 3 <div style='background:#CD1076;width:4em;height:4em;'></div>.
@ CadetBlue
<div style='background:#5F9EA0;width:4em;height:4em;'></div>
@ PaleGreen
<div style='background:#98FB98;width:4em;height:4em;'></div>
@ Cyan
<div style='background:#00FFFF;width:4em;height:4em;'></div>
@ Orange
<div style='background:#FFA500;width:4em;height:4em;'></div>
@ Grey10
TCL grayscale 10% <div style='background:#1A1A1A;width:4em;height:4em;'></div>.
@ Ivory
<div style='background:#FFFFF0;width:4em;height:4em;'></div>
@ LavenderBlush
<div style='background:#FFF0F5;width:4em;height:4em;'></div>
@ LightPink
<div style='background:#FFB6C1;width:4em;height:4em;'></div>
@ DarkCyan
<div style='background:#008B8B;width:4em;height:4em;'></div>
@ Turquoise
<div style='background:#40E0D0;width:4em;height:4em;'></div>
@ Magenta1
TCL magenta variant 1 <div style='background:#FF00FF;width:4em;height:4em;'></div>.
@ Gray25
TCL grayscale 25% <div style='background:#404040;width:4em;height:4em;'></div>.
@ DeepPink4
TCL deep pink variant 4 <div style='background:#8B0A50;width:4em;height:4em;'></div>.
@ DarkGrey
<div style='background:#A9A9A9;width:4em;height:4em;'></div>
@ Gold1
TCL gold variant 1 <div style='background:#FFD700;width:4em;height:4em;'></div>.
@ Green2
TCL green variant 2 <div style='background:#00EE00;width:4em;height:4em;'></div>.
@ Blue4
TCL blue variant 4 (darkest) <div style='background:#00008B;width:4em;height:4em;'></div>.
@ Gainsboro
<div style='background:#DCDCDC;width:4em;height:4em;'></div>
@ Linen
<div style='background:#FAF0E6;width:4em;height:4em;'></div>
@ YellowGreen
<div style='background:#9ACD32;width:4em;height:4em;'></div>
@ Orange2
TCL orange variant 2 <div style='background:#EE9A00;width:4em;height:4em;'></div>.
@ IndianRed
<div style='background:#CD5C5C;width:4em;height:4em;'></div>
@ GhostWhite
<div style='background:#F8F8FF;width:4em;height:4em;'></div>
@ Goldenrod
<div style='background:#DAA520;width:4em;height:4em;'></div>
@ Lavender
<div style='background:#E6E6FA;width:4em;height:4em;'></div>
@ Thistle
<div style='background:#D8BFD8;width:4em;height:4em;'></div>
@ Wheat
<div style='background:#F5DEB3;width:4em;height:4em;'></div>
@ DeepPink
<div style='background:#FF1493;width:4em;height:4em;'></div>
@ Teal
<div style='background:#008080;width:4em;height:4em;'></div>
@ VioletRed
TCL violet red <div style='background:#D02090;width:4em;height:4em;'></div>.
@ Orange4
TCL orange variant 4 <div style='background:#8B5A00;width:4em;height:4em;'></div>.
@ Cyan1
TCL cyan variant 1 <div style='background:#00FFFF;width:4em;height:4em;'></div>.
@ Tomato
<div style='background:#FF6347;width:4em;height:4em;'></div>
@ Gold3
TCL gold variant 3 <div style='background:#CDAD00;width:4em;height:4em;'></div>.
@ FloralWhite
<div style='background:#FFFAF0;width:4em;height:4em;'></div>
@ Red1
TCL red variant 1 (brightest) <div style='background:#FF0000;width:4em;height:4em;'></div>.
@ Green1
TCL green variant 1 (brightest) <div style='background:#00FF00;width:4em;height:4em;'></div>.
@ Brown
<div style='background:#A52A2A;width:4em;height:4em;'></div>
@ LightSkyBlue
<div style='background:#87CEFA;width:4em;height:4em;'></div>
@ LightSeaGreen
<div style='background:#20B2AA;width:4em;height:4em;'></div>
@ Olive
<div style='background:#808000;width:4em;height:4em;'></div>
@ MediumPurple
<div style='background:#9370DB;width:4em;height:4em;'></div>
@ Grey100
TCL grayscale 100% <div style='background:#FFFFFF;width:4em;height:4em;'></div>.
@ HotPink
<div style='background:#FF69B4;width:4em;height:4em;'></div>
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
@ Grey
<div style='background:#808080;width:4em;height:4em;'></div>
@ PaleTurquoise
<div style='background:#AFEEEE;width:4em;height:4em;'></div>
@ DarkBlue
<div style='background:#00008B;width:4em;height:4em;'></div>
@ DarkSlateGrey
<div style='background:#2F4F4F;width:4em;height:4em;'></div>
@ SlateGrey
<div style='background:#708090;width:4em;height:4em;'></div>
@ DarkMagenta
<div style='background:#8B008B;width:4em;height:4em;'></div>
@ Gray
<div style='background:#808080;width:4em;height:4em;'></div>
@ DeepPink1
TCL deep pink variant 1 <div style='background:#FF1493;width:4em;height:4em;'></div>.
@ Maroon
<div style='background:#800000;width:4em;height:4em;'></div>
@ DimGray
<div style='background:#696969;width:4em;height:4em;'></div>
@ DarkSalmon
<div style='background:#E9967A;width:4em;height:4em;'></div>
@ Aquamarine
<div style='background:#7FFFD4;width:4em;height:4em;'></div>
@ Grey25
TCL grayscale 25% <div style='background:#404040;width:4em;height:4em;'></div>.
@ Red4
TCL red variant 4 (darkest) <div style='background:#8B0000;width:4em;height:4em;'></div>.
@ DeepSkyBlue
<div style='background:#00BFFF;width:4em;height:4em;'></div>
@ LightGoldenrodYellow
<div style='background:#FAFAD2;width:4em;height:4em;'></div>
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
@ SlateGray
<div style='background:#708090;width:4em;height:4em;'></div>
@ LightSalmon
<div style='background:#FFA07A;width:4em;height:4em;'></div>
@ Yellow
<div style='background:#FFFF00;width:4em;height:4em;'></div>
@ Navy
<div style='background:#000080;width:4em;height:4em;'></div>
@ LawnGreen
<div style='background:#7CFC00;width:4em;height:4em;'></div>
@ LightBlue
<div style='background:#ADD8E6;width:4em;height:4em;'></div>
@ DarkSeaGreen
<div style='background:#8FBC8F;width:4em;height:4em;'></div>
@ SaddleBrown
<div style='background:#8B4513;width:4em;height:4em;'></div>
@ MediumSlateBlue
<div style='background:#7B68EE;width:4em;height:4em;'></div>
@ Tan
<div style='background:#D2B48C;width:4em;height:4em;'></div>
@ MediumBlue
<div style='background:#0000CD;width:4em;height:4em;'></div>
@ DarkSlateBlue
<div style='background:#483D8B;width:4em;height:4em;'></div>
@ Indigo
<div style='background:#4B0082;width:4em;height:4em;'></div>
@ Violet
<div style='background:#EE82EE;width:4em;height:4em;'></div>
@ Blue3
TCL blue variant 3 <div style='background:#0000CD;width:4em;height:4em;'></div>.
@ Gray10
TCL grayscale 10% <div style='background:#1A1A1A;width:4em;height:4em;'></div>.
@ SpringGreen
<div style='background:#00FF7F;width:4em;height:4em;'></div>
@ MediumSpringGreen
<div style='background:#00FA9A;width:4em;height:4em;'></div>
@ Grey75
TCL grayscale 75% <div style='background:#BFBFBF;width:4em;height:4em;'></div>.
@ NavajoWhite
<div style='background:#FFDEAD;width:4em;height:4em;'></div>
@ DarkRed
<div style='background:#8B0000;width:4em;height:4em;'></div>
@ BlueViolet
<div style='background:#8A2BE2;width:4em;height:4em;'></div>
@ SteelBlue
<div style='background:#4682B4;width:4em;height:4em;'></div>
@ MistyRose
<div style='background:#FFE4E1;width:4em;height:4em;'></div>
@ LightSlateGrey
<div style='background:#778899;width:4em;height:4em;'></div>
@ Green4
TCL green variant 4 (darkest) <div style='background:#008B00;width:4em;height:4em;'></div>.
@ Yellow3
TCL yellow variant 3 <div style='background:#CDCD00;width:4em;height:4em;'></div>.
@ MediumAquamarine
<div style='background:#66CDAA;width:4em;height:4em;'></div>
@ Gray50
TCL grayscale 50% <div style='background:#7F7F7F;width:4em;height:4em;'></div>.
@ Azure
<div style='background:#F0FFFF;width:4em;height:4em;'></div>
@ LemonChiffon
<div style='background:#FFFACD;width:4em;height:4em;'></div>
@ Pink
<div style='background:#FFC0CB;width:4em;height:4em;'></div>
@ Cyan4
TCL cyan variant 4 <div style='background:#008B8B;width:4em;height:4em;'></div>.
@ Purple
<div style='background:#800080;width:4em;height:4em;'></div>
@ DarkGray
<div style='background:#A9A9A9;width:4em;height:4em;'></div>
@ AntiqueWhite
<div style='background:#FAEBD7;width:4em;height:4em;'></div>
@ Grey0
TCL grayscale 0% <div style='background:#000000;width:4em;height:4em;'></div>.
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
@ LimeGreen
<div style='background:#32CD32;width:4em;height:4em;'></div>
@ Beige
<div style='background:#F5F5DC;width:4em;height:4em;'></div>
@ Yellow1
TCL yellow variant 1 <div style='background:#FFFF00;width:4em;height:4em;'></div>.
@ Snow
<div style='background:#FFFAFA;width:4em;height:4em;'></div>
@ RoyalBlue
<div style='background:#4169E1;width:4em;height:4em;'></div>
@ PapayaWhip
<div style='background:#FFEFD5;width:4em;height:4em;'></div>
@ Honeydew
<div style='background:#F0FFF0;width:4em;height:4em;'></div>
@ Orange3
TCL orange variant 3 <div style='background:#CD8500;width:4em;height:4em;'></div>.
@ DarkOrchid
<div style='background:#9932CC;width:4em;height:4em;'></div>
@ LightCyan
<div style='background:#E0FFFF;width:4em;height:4em;'></div>
@ SlateBlue
<div style='background:#6A5ACD;width:4em;height:4em;'></div>
@ Plum
<div style='background:#DDA0DD;width:4em;height:4em;'></div>
@ Sienna
<div style='background:#A0522D;width:4em;height:4em;'></div>
@ Cyan3
TCL cyan variant 3 <div style='background:#00CDCD;width:4em;height:4em;'></div>.
@ DimGrey
<div style='background:#696969;width:4em;height:4em;'></div>
@ Blue1
TCL blue variant 1 (brightest) <div style='background:#0000FF;width:4em;height:4em;'></div>.
@ SandyBrown
<div style='background:#F4A460;width:4em;height:4em;'></div>
@ CornflowerBlue
<div style='background:#6495ED;width:4em;height:4em;'></div>
@ Aqua
<div style='background:#00FFFF;width:4em;height:4em;'></div>
@ BlanchedAlmond
<div style='background:#FFEBCD;width:4em;height:4em;'></div>
@ FairyLightNCC
<div style='background:#FFE42D;width:4em;height:4em;'></div>
@ DarkOliveGreen
<div style='background:#556B2F;width:4em;height:4em;'></div>
FASTLED_FORCE_INLINE CRGB & nscale8_video(u8 scaledown) FL_NOEXCEPT
Scale down a RGB to N/256ths of it's current brightness using "video" dimming rules.
CRGB lerp8(const CRGB &other, fract8 amountOf2) const FL_NOEXCEPT
Return a new CRGB object after performing a linear interpolation between this object and the passed i...
HSV16 toHSV16() const FL_NOEXCEPT
CRGB & setHue(u8 hue) FL_NOEXCEPT
Allow assignment from just a hue.
FASTLED_FORCE_INLINE CRGB & setRGB(u8 nr, u8 ng, u8 nb) FL_NOEXCEPT
Allow assignment from red, green, and blue.
FASTLED_FORCE_INLINE CRGB(const CRGB &rhs)=default
Allow copy construction.
FASTLED_FORCE_INLINE CRGB & subtractFromRGB(u8 d) FL_NOEXCEPT
Subtract a constant from each channel, saturating at 0x00.
constexpr u32 as_uint32_t() const FL_NOEXCEPT
FASTLED_FORCE_INLINE void setParity(u8 parity) FL_NOEXCEPT
Adjusts the color in the smallest way possible so that the parity of the coloris now the desired valu...
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Representation of an HSV pixel (hue, saturation, value (aka brightness)).