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

◆ getEaseType()

fl::EaseType getEaseType ( int value)

Definition at line 72 of file ColorBoost.h.

72 {
73 switch (value) {
74 case 0: return fl::EaseType::EASE_NONE;
75 case 1: return fl::EaseType::EASE_IN_QUAD;
76 case 2: return fl::EaseType::EASE_OUT_QUAD;
77 case 3: return fl::EaseType::EASE_IN_OUT_QUAD;
78 case 4: return fl::EaseType::EASE_IN_CUBIC;
79 case 5: return fl::EaseType::EASE_OUT_CUBIC;
81 case 7: return fl::EaseType::EASE_IN_SINE;
82 case 8: return fl::EaseType::EASE_OUT_SINE;
83 case 9: return fl::EaseType::EASE_IN_OUT_SINE;
84 }
85 FL_ASSERT(false, "Invalid ease type");
87}
#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 rainbowWave().

+ Here is the caller graph for this function: