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

Function easeInQuad8

src/fl/math/ease.cpp.hpp:58–62  ·  view source on GitHub ↗

8-bit easing functions

Source from the content-addressed store, hash-verified

56
57// 8-bit easing functions
58u8 easeInQuad8(u8 i) {
59 // Simple quadratic ease-in: i^2 scaled to 8-bit range
60 // Using scale8(i, i) which computes (i * i) / 255
61 return scale8(i, i);
62}
63
64u8 easeInOutQuad8(u8 i) {
65 constexpr u16 MAX = 0xFF; // 255

Callers 1

ease8Function · 0.85

Calls 1

scale8Function · 0.50

Tested by

no test coverage detected