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

Function make_rgb

tests/fl/gfx/colorutils.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39CRGB make_rgb(int i) {
40 return CRGB(static_cast<fl::u8>(i), static_cast<fl::u8>(2 * i),
41 static_cast<fl::u8>(255 - i));
42}
43
44void check_hsv_eq(const CHSV &lhs, const CHSV &rhs) {
45 FL_CHECK_EQ(lhs.hue, rhs.hue);

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

CRGBClass · 0.50

Tested by

no test coverage detected