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

Method raw

src/fl/math/alpha.h:55–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 constexpr operator unsigned char() const FL_NOEXCEPT { return value; }
54
55 constexpr unsigned char raw() const FL_NOEXCEPT { return value; }
56 constexpr float to_float() const FL_NOEXCEPT { return value / 255.0f; }
57
58 static constexpr alpha8 from_float(float f) FL_NOEXCEPT {

Callers 15

CRGB16Class · 0.45
s16x16>Method · 0.45
chMethod · 0.45
scale_hd_channelFunction · 0.45
scale_rgb_hdFunction · 0.45
applyGamma_videoFunction · 0.45
gammaFunction · 0.45
rainbowMethod · 0.45
drawDotMethod · 0.45
drawAALineMethod · 0.45
flowPrepareMethod · 0.45
flowAdvectMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_from_raw_implFunction · 0.36
test_addition_implFunction · 0.36
test_subtraction_implFunction · 0.36
test_unary_negation_implFunction · 0.36
test_multiply_implFunction · 0.36
test_divide_implFunction · 0.36
test_right_shift_implFunction · 0.36
test_comparisons_implFunction · 0.36
test_floor_ceil_implFunction · 0.36