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

◆ getEaseType()

EaseType getEaseType ( int value)

Definition at line 58 of file EaseInOut.h.

58 {
59 switch (value) {
60 case 0: return EASE_NONE;
61 case 1: return EASE_IN_QUAD;
62 case 2: return EASE_OUT_QUAD;
63 case 3: return EASE_IN_OUT_QUAD;
64 case 4: return EASE_IN_CUBIC;
65 case 5: return EASE_OUT_CUBIC;
66 case 6: return EASE_IN_OUT_CUBIC;
67 case 7: return EASE_IN_SINE;
68 case 8: return EASE_OUT_SINE;
69 case 9: return EASE_IN_OUT_SINE;
70 }
71 FL_ASSERT(false, "Invalid ease type");
72 return EASE_IN_OUT_QUAD;
73}
#define FL_ASSERT(x, MSG)
Definition assert.h:6
@ EASE_OUT_CUBIC
Definition ease.h:27
@ EASE_NONE
Definition ease.h:22
@ EASE_IN_QUAD
Definition ease.h:23
@ EASE_IN_SINE
Definition ease.h:29
@ EASE_OUT_SINE
Definition ease.h:30
@ EASE_IN_CUBIC
Definition ease.h:26
@ EASE_OUT_QUAD
Definition ease.h:24
@ EASE_IN_OUT_CUBIC
Definition ease.h:28
@ EASE_IN_OUT_SINE
Definition ease.h:31
@ EASE_IN_OUT_QUAD
Definition ease.h:25

References fl::EASE_IN_CUBIC, fl::EASE_IN_OUT_CUBIC, fl::EASE_IN_OUT_QUAD, fl::EASE_IN_OUT_SINE, fl::EASE_IN_QUAD, fl::EASE_IN_SINE, fl::EASE_NONE, fl::EASE_OUT_CUBIC, fl::EASE_OUT_QUAD, fl::EASE_OUT_SINE, and FL_ASSERT.

Referenced by loop().

+ Here is the caller graph for this function: