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

Function downconvert

tests/fl/gfx/colorutils.cpp:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56CRGB downconvert(const fl::CRGB16 &rgb) {
57 return CRGB(static_cast<fl::u8>(rgb.r.to_int()),
58 static_cast<fl::u8>(rgb.g.to_int()),
59 static_cast<fl::u8>(rgb.b.to_int()));
60}
61
62} // namespace
63

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 2

CRGBClass · 0.50
to_intMethod · 0.45

Tested by

no test coverage detected