Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
CRGB 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_FILE
Function · 0.85
Calls
2
CRGB
Class · 0.50
to_int
Method · 0.45
Tested by
no test coverage detected