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

96 {
97 return val.to_int(); // For s16x16 and similar
98}