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

◆ getEaseType()

fl::EaseType getEaseType ( int value)

Definition at line 56 of file EaseInOut.h.

56 {
57 switch (value) {
58 case 0: return fl::EaseType::EASE_NONE;
59 case 1: return fl::EaseType::EASE_IN_QUAD;
60 case 2: return fl::EaseType::EASE_OUT_QUAD;
61 case 3: return fl::EaseType::EASE_IN_OUT_QUAD;
62 case 4: return fl::EaseType::EASE_IN_CUBIC;
63 case 5: return fl::EaseType::EASE_OUT_CUBIC;
65 case 7: return fl::EaseType::EASE_IN_SINE;
66 case 8: return fl::EaseType::EASE_OUT_SINE;
67 case 9: return fl::EaseType::EASE_IN_OUT_SINE;
68 }
69 FL_ASSERT(false, "Invalid ease type");
71}
#define FL_ASSERT(x, MSG)
Definition assert.h:6
@ EASE_IN_OUT_CUBIC
Definition ease.h:34
@ EASE_OUT_QUAD
Definition ease.h:30
@ EASE_IN_QUAD
Definition ease.h:29
@ EASE_NONE
Definition ease.h:28
@ EASE_IN_OUT_QUAD
Definition ease.h:31
@ EASE_IN_CUBIC
Definition ease.h:32
@ EASE_IN_SINE
Definition ease.h:35
@ EASE_OUT_CUBIC
Definition ease.h:33
@ EASE_IN_OUT_SINE
Definition ease.h:37
@ EASE_OUT_SINE
Definition ease.h:36

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: