FastLED 3.10.8
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_NO_EXCEPT
Definition alpha.h:74
constexpr alpha8() FL_NO_EXCEPT
Definition alpha.h:45

References alpha8(), _clamp(), and fl::FL_NO_EXCEPT.

+ Here is the call graph for this function: