FastLED 3.9.15
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 57 of file primitives.h.

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

Referenced by halfOf().

+ Here is the caller graph for this function: