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

◆ toInt()

template<typename T>
int fl::gfx::toInt ( const T & val)
inline

Helper to convert any coordinate type to int Supports: s16x16 (via to_int()), float, int, and other arithmetic types.

Definition at line 98 of file primitives.h.

98 {
99 return val.to_int(); // For s16x16 and similar
100}

References fl::FL_NO_EXCEPT.