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

◆ easeInQuad16()

u16 fl::easeInQuad16 ( u16 i)

16-bit quadratic ease-in function Takes an input value 0-65535 and returns an eased value 0-65535

Definition at line 180 of file ease.cpp.

180 {
181 // Simple quadratic ease-in: i^2 scaled to 16-bit range
182 // Using scale16(i, i) which computes (i * i) / 65535
183 return scale16(i, i);
184}
LIB8STATIC uint16_t scale16(uint16_t i, fract16 scale)
Scale a 16-bit unsigned value by an 16-bit value, which is treated as the numerator of a fraction who...
Definition scale8.h:551

References scale16().

Referenced by ease16(), and ease16().

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