MCPcopy Create free account
hub / github.com/FastLED/FastLED / CRGB

Method CRGB

src/fl/gfx/crgb_extra.cpp.hpp:24–31  ·  view source on GitHub ↗

Constructor from hsv8 - converts HSV color to RGB

Source from the content-addressed store, hash-verified

22
23/// Constructor from hsv8 - converts HSV color to RGB
24CRGB::CRGB(const hsv8& rhs) {
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}
32
33/// Assignment operator from hsv8 - converts HSV color to RGB
34CRGB& CRGB::operator=(const hsv8& rhs) FL_NOEXCEPT {

Callers

nothing calls this directly

Calls 2

hsv2rgb_rainbowFunction · 0.85
ToRGBMethod · 0.45

Tested by

no test coverage detected