FastLED 3.10.8
Loading...
Searching...
No Matches

◆ easeOutSine8()

u8 fl::easeOutSine8 ( u8 i)

8-bit sine ease-out function Takes an input value 0-255 and returns an eased value 0-255 Smooth sinusoidal deceleration

Definition at line 171 of file ease.cpp.hpp.

171 {
172 // ease-out sine: sin(t * π/2)
173 // Delegate to 16-bit version for consistency and accuracy
174 // Scale 8-bit input to 16-bit range, call 16-bit function, scale result back
175 u16 input16 = map8_to_16(i);
176 u16 result16 = easeOutSine16(input16);
177 return map16_to_8(result16);
178}
u16 map8_to_16(u8 x) FL_NO_EXCEPT
Definition intmap.h:48
u8 map16_to_8(u16 x) FL_NO_EXCEPT
Definition intmap.h:66
u16 easeOutSine16(u16 i) FL_NO_EXCEPT
16-bit sine ease-out function Takes an input value 0-65535 and returns an eased value 0-65535
Definition ease.cpp.hpp:306

References easeOutSine16(), FL_NO_EXCEPT, map16_to_8(), and map8_to_16().

Referenced by ease8(), and ease8().

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