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

◆ easeInQuad8()

u8 fl::easeInQuad8 ( u8 i)

8-bit quadratic ease-in function Takes an input value 0-255 and returns an eased value 0-255 The curve starts slow and accelerates (ease-in only)

Definition at line 49 of file ease.cpp.

49 {
50 // Simple quadratic ease-in: i^2 scaled to 8-bit range
51 // Using scale8(i, i) which computes (i * i) / 255
52 return scale8(i, i);
53}
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
Definition scale8.h:44

References scale8().

Referenced by ease8(), and ease8().

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