FastLED 3.9.15
Loading...
Searching...
No Matches

◆ from_float()

static constexpr alpha8 fl::alpha8::from_float ( float f)
inlinestaticconstexpr

Definition at line 58 of file alpha.h.

58 {
59 return alpha8(static_cast<unsigned char>(_clamp(f)));
60 }
static constexpr unsigned char _clamp(float f) FL_NOEXCEPT
Definition alpha.h:74
constexpr alpha8() FL_NOEXCEPT
Definition alpha.h:45

References alpha8(), _clamp(), and FL_NOEXCEPT.

+ Here is the call graph for this function: