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

◆ fromInt()

template<typename T>
T fl::gfx::fromInt ( int n)
inline

Convert an integer to Coord without float intermediate.

For s16x16: uses from_raw (pure integer shift). For float: implicit cast.

Definition at line 59 of file primitives.h.

59{ return T(static_cast<float>(n)); }

References fl::FL_NO_EXCEPT.

Referenced by halfOf().

+ Here is the caller graph for this function: