FastLED 3.9.7
|
Defines utility functions for the red, green, and blue (RGB) pixel struct.
Definition in file crgb.hpp.
#include <stdint.h>
#include "chsv.h"
#include "crgb.h"
#include "lib8tion.h"
#include "fl/namespace.h"
#include "fl/force_inline.h"
#include "fl/str.h"
Go to the source code of this file.
Macros | |
#define | FUNCTION_SCALE8(a, b) ::scale8(a,b) |
Functions | |
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() | |