FastLED 3.9.15
Loading...
Searching...
No Matches

◆ CRGB() [7/8]

fl::CRGB::CRGB ( const hsv8 & rhs)

Allow construction from a hsv8 color.

Constructor from hsv8 - converts HSV color to RGB.

Definition at line 24 of file crgb_extra.cpp.hpp.

24 {
25 CHSV hsv_color(rhs.h, rhs.s, rhs.v);
26 CRGB rgb_result;
27 hsv2rgb_rainbow(hsv_color, rgb_result);
28 r = rgb_result.r;
29 g = rgb_result.g;
30 b = rgb_result.b;
31}
fl::hsv8 CHSV
Definition chsv.h:11
CRGB hsv2rgb_rainbow(const CHSV &hsv)
FASTLED_FORCE_INLINE CRGB() FL_NOEXCEPT
Default constructor.
Definition crgb.h:111

References CRGB(), and hsv2rgb_rainbow().

+ Here is the call graph for this function: