|
void | hsv2rgb_rainbow (const CHSV &hsv, CRGB &rgb) |
| Forward declaration of hsv2rgb_rainbow here, to avoid circular dependencies.
|
|
FASTLED_FORCE_INLINE uint8_t & | CRGB::operator[] (uint8_t x) |
| Array access operator to index into the CRGB object.
|
|
FASTLED_FORCE_INLINE const uint8_t & | CRGB::operator[] (uint8_t x) const |
| Array access operator to index into the CRGB object.
|
|
FASTLED_FORCE_INLINE | CRGB::CRGB ()=default |
| Default constructor.
|
|
constexpr | CRGB::CRGB (uint8_t ir, uint8_t ig, uint8_t ib) |
| Allow construction from red, green, and blue.
|
|
constexpr | CRGB::CRGB (uint32_t colorcode) |
| Allow construction from 32-bit (really 24-bit) bit 0xRRGGBB color code.
|
|
constexpr | CRGB::CRGB (LEDColorCorrection colorcode) |
| Allow construction from a LEDColorCorrection enum.
|
|
constexpr | CRGB::CRGB (ColorTemperature colorcode) |
| Allow construction from a ColorTemperature enum.
|
|
FASTLED_FORCE_INLINE | CRGB::CRGB (const CRGB &rhs)=default |
| Allow copy construction.
|
|
FASTLED_FORCE_INLINE | CRGB::CRGB (const CHSV &rhs) |
| Allow construction from a CHSV color.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator= (const CRGB &rhs)=default |
| Allow assignment from one RGB struct to another.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator= (const uint32_t colorcode) |
| Allow assignment from 32-bit (really 24-bit) 0xRRGGBB color code.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::setRGB (uint8_t nr, uint8_t ng, uint8_t nb) |
| Allow assignment from red, green, and blue.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::setHSV (uint8_t hue, uint8_t sat, uint8_t val) |
| Allow assignment from hue, saturation, and value.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::setHue (uint8_t hue) |
| Allow assignment from just a hue.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator= (const CHSV &rhs) |
| Allow assignment from HSV color.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::setColorCode (uint32_t colorcode) |
| Allow assignment from 32-bit (really 24-bit) 0xRRGGBB color code.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator+= (const CRGB &rhs) |
| Add one CRGB to another, saturating at 0xFF for each channel.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::addToRGB (uint8_t d) |
| Add a constant to each channel, saturating at 0xFF.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator-= (const CRGB &rhs) |
| Subtract one CRGB from another, saturating at 0x00 for each channel.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::subtractFromRGB (uint8_t d) |
| Subtract a constant from each channel, saturating at 0x00.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator-- () |
| Subtract a constant of '1' from each channel, saturating at 0x00.
|
|
FASTLED_FORCE_INLINE CRGB | CRGB::operator-- (int) |
| Subtract a constant of '1' from each channel, saturating at 0x00.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator++ () |
| Add a constant of '1' from each channel, saturating at 0xFF.
|
|
FASTLED_FORCE_INLINE CRGB | CRGB::operator++ (int) |
| Add a constant of '1' from each channel, saturating at 0xFF.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator/= (uint8_t d) |
| Divide each of the channels by a constant.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator>>= (uint8_t d) |
| Right shift each of the channels by a constant.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator*= (uint8_t d) |
| Multiply each of the channels by a constant, saturating each channel at 0xFF.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::nscale8_video (uint8_t scaledown) |
| Scale down a RGB to N/256ths of it's current brightness using "video" dimming rules.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator%= (uint8_t scaledown) |
| %= is a synonym for nscale8_video().
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::fadeLightBy (uint8_t fadefactor) |
| fadeLightBy is a synonym for nscale8_video(), as a fade instead of a scale
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::nscale8 (uint8_t scaledown) |
| Scale down a RGB to N/256ths of its current brightness, using "plain math" dimming rules.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::nscale8 (const CRGB &scaledown) |
| Scale down a RGB to N/256ths of its current brightness, using "plain math" dimming rules.
|
|
FASTLED_FORCE_INLINE CRGB | CRGB::scale8 (uint8_t scaledown) const |
| Return a CRGB object that is a scaled down version of this object.
|
|
FASTLED_FORCE_INLINE CRGB | CRGB::scale8 (const CRGB &scaledown) const |
| Return a CRGB object that is a scaled down version of this object.
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::fadeToBlackBy (uint8_t fadefactor) |
| fadeToBlackBy is a synonym for nscale8(), as a fade instead of a scale
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator|= (const CRGB &rhs) |
| "or" operator brings each channel up to the higher of the two values
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator|= (uint8_t d) |
| "or" operator brings each channel up to the higher of the two values
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator&= (const CRGB &rhs) |
| "and" operator brings each channel down to the lower of the two values
|
|
FASTLED_FORCE_INLINE CRGB & | CRGB::operator&= (uint8_t d) |
| "and" operator brings each channel down to the lower of the two values
|
|
FASTLED_FORCE_INLINE | CRGB::operator bool () const |
| This allows testing a CRGB for zero-ness.
|
|
FASTLED_FORCE_INLINE | CRGB::operator uint32_t () const |
| Converts a CRGB to a 32-bit color having an alpha of 255.
|
|
FASTLED_FORCE_INLINE CRGB | CRGB::operator- () const |
| Invert each channel.
|
|
| CRGB::operator rgb24 () const |
| Convert to an rgb24 object, used with the SmartMatrix library.
|
|
FASTLED_FORCE_INLINE uint8_t | CRGB::getLuma () const |
| Get the "luma" of a CRGB object.
|
|
FASTLED_FORCE_INLINE uint8_t | CRGB::getAverageLight () const |
| Get the average of the R, G, and B values.
|
|
FASTLED_FORCE_INLINE void | CRGB::maximizeBrightness (uint8_t limit=255) |
| Maximize the brightness of this CRGB object.
|
|
FASTLED_FORCE_INLINE CRGB | CRGB::lerp8 (const CRGB &other, fract8 frac) const |
| Return a new CRGB object after performing a linear interpolation between this object and the passed in object.
|
|
FASTLED_FORCE_INLINE CRGB | CRGB::lerp16 (const CRGB &other, fract16 frac) const |
| Return a new CRGB object after performing a linear interpolation between this object and the passed in object.
|
|
FASTLED_FORCE_INLINE uint8_t | CRGB::getParity () |
| Returns 0 or 1, depending on the lowest bit of the sum of the color components.
|
|
FASTLED_FORCE_INLINE void | CRGB::setParity (uint8_t parity) |
| Adjusts the color in the smallest way possible so that the parity of the coloris now the desired value.
|
|
FASTLED_FORCE_INLINE bool | operator== (const CRGB &lhs, const CRGB &rhs) |
| Check if two CRGB objects have the same color data.
|
|
FASTLED_FORCE_INLINE bool | operator!= (const CRGB &lhs, const CRGB &rhs) |
| Check if two CRGB objects do not have the same color data.
|
|
FASTLED_FORCE_INLINE bool | operator== (const CHSV &lhs, const CHSV &rhs) |
| Check if two CHSV objects have the same color data.
|
|
FASTLED_FORCE_INLINE bool | operator!= (const CHSV &lhs, const CHSV &rhs) |
| Check if two CHSV objects do not have the same color data.
|
|
FASTLED_FORCE_INLINE bool | operator< (const CRGB &lhs, const CRGB &rhs) |
| 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) |
| 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) |
| Check if the sum of the color channels in one CRGB object is greater than or equal to another.
|
|
FASTLED_FORCE_INLINE bool | operator<= (const CRGB &lhs, const CRGB &rhs) |
| 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, uint8_t d) |
| Divide each of the channels by a constant.
|
|
FASTLED_FORCE_INLINE CRGB | operator& (const CRGB &p1, const CRGB &p2) |
| Combine two CRGB objects, taking the smallest value of each channel.
|
|
FASTLED_FORCE_INLINE CRGB | operator| (const CRGB &p1, const CRGB &p2) |
| Combine two CRGB objects, taking the largest value of each channel.
|
|
FASTLED_FORCE_INLINE CRGB | operator+ (const CRGB &p1, const CRGB &p2) |
| Add one CRGB to another, saturating at 0xFF for each channel.
|
|
FASTLED_FORCE_INLINE CRGB | operator- (const CRGB &p1, const CRGB &p2) |
| Subtract one CRGB from another, saturating at 0x00 for each channel.
|
|
FASTLED_FORCE_INLINE CRGB | operator* (const CRGB &p1, uint8_t d) |
| Multiply each of the channels by a constant, saturating each channel at 0xFF.
|
|
FASTLED_FORCE_INLINE CRGB | operator% (const CRGB &p1, uint8_t d) |
| Scale using CRGB::nscale8_video()
|
|