FastLED 3.9.15
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_NOEXCEPT
Definition alpha.h:90
static constexpr unsigned short _clamp(float f) FL_NOEXCEPT
Definition alpha.h:130

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

+ Here is the call graph for this function: