FastLED 3.9.15
Loading...
Searching...
No Matches

◆ toFixed8()

template<typename Coord>
fl::i32 fl::gfx::detail::toFixed8 ( Coord val)
inline

Convert any Coord type to 8.8 fixed-point (fl::i32).

Generic fallback: use to_float() conversion.

Definition at line 180 of file primitives.h.

180 {
181 return static_cast<fl::i32>(val.to_float() * 256.0f);
182}

References toFixed8().

Referenced by drawDiscCore(), drawLineCore(), drawRingCore(), drawStrokeLineCore(), toFixed8(), toFixed8< double >(), toFixed8< fl::s16x16 >(), toFixed8< float >(), and toFixed8< int >().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: