FastLED 3.10.10
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 103 of file primitives.h.

103 {
104 return val.to_int(); // For s16x16 and similar
105}

References fl::FL_NO_EXCEPT.