FastLED 3.9.15
Loading...
Searching...
No Matches
crgb_hsv16.cpp
Go to the documentation of this file.
1
3
4#define FASTLED_INTERNAL
5#include "crgb.h"
6#include "fl/hsv16.h"
7#include "fl/namespace.h"
8
10
11CRGB CRGB::colorBoost(fl::EaseType saturation_function, fl::EaseType luminance_function) const {
12 fl::HSV16 hsv(*this);
13 return hsv.colorBoost(saturation_function, luminance_function);
14}
15
16void CRGB::colorBoost(const CRGB* src, CRGB* dst, size_t count, fl::EaseType saturation_function, fl::EaseType luminance_function) {
17 for (size_t i = 0; i < count; i++) {
18 dst[i] = src[i].colorBoost(saturation_function, luminance_function);
19 }
20}
21
23 return fl::HSV16(*this);
24}
25
26// Constructor implementation for HSV16 -> CRGB automatic conversion
27CRGB::CRGB(const fl::HSV16& rhs) {
28 *this = rhs.ToRGB();
29}
30
Defines the red, green, and blue (RGB) pixel struct.
#define FASTLED_NAMESPACE_END
Definition namespace.h:23
#define FASTLED_NAMESPACE_BEGIN
Definition namespace.h:22
Implements the FastLED namespace macros.
EaseType
Definition ease.h:21
fl::HSV16 toHSV16() const
FASTLED_FORCE_INLINE CRGB()
Default constructor.
Definition crgb.h:158
CRGB colorBoost(fl::EaseType saturation_function=fl::EASE_NONE, fl::EaseType luminance_function=fl::EASE_NONE) const
CRGB colorBoost(EaseType saturation_function=EASE_IN_QUAD, EaseType luminance_function=EASE_NONE) const
Definition hsv16.cpp:181
CRGB ToRGB() const
Definition hsv16.cpp:177