FastLED 3.10.8
Loading...
Searching...
No Matches

◆ from_float()

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

Definition at line 103 of file alpha.h.

103 {
104 return alpha16(static_cast<unsigned short>(_clamp(f)));
105 }
constexpr alpha16() FL_NO_EXCEPT
Definition alpha.h:90
static constexpr unsigned short _clamp(float f) FL_NO_EXCEPT
Definition alpha.h:130

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

+ Here is the call graph for this function: