MCPcopy Create free account
hub / github.com/FastLED/FastLED / toFixed8

Function toFixed8

src/fl/gfx/primitives.h:180–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178/// Generic fallback: use to_float() conversion.
179template<typename Coord>
180inline fl::i32 toFixed8(Coord val) {
181 return static_cast<fl::i32>(val.to_float() * 256.0f);
182}
183
184template<>
185inline fl::i32 toFixed8<float>(float val) {

Callers 4

drawLineCoreFunction · 0.85
drawDiscCoreMethod · 0.85
drawRingCoreMethod · 0.85
drawStrokeLineCoreMethod · 0.85

Calls 1

to_floatMethod · 0.45

Tested by

no test coverage detected