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

◆ getEaseType()

EaseType getEaseType ( int value)

Definition at line 80 of file ColorBoost.h.

80 {
81 switch (value) {
82 case 0: return EASE_NONE;
83 case 1: return EASE_IN_QUAD;
84 case 2: return EASE_OUT_QUAD;
85 case 3: return EASE_IN_OUT_QUAD;
86 case 4: return EASE_IN_CUBIC;
87 case 5: return EASE_OUT_CUBIC;
88 case 6: return EASE_IN_OUT_CUBIC;
89 case 7: return EASE_IN_SINE;
90 case 8: return EASE_OUT_SINE;
91 case 9: return EASE_IN_OUT_SINE;
92 }
93 FL_ASSERT(false, "Invalid ease type");
94 return EASE_NONE;
95}
#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 rainbowWave().

+ Here is the caller graph for this function: