FastLED 3.10.6
Loading...
Searching...
No Matches

◆ softKnee()

float mood_ring::anonymous_namespace{room_sense.cpp}::softKnee ( float x)

Definition at line 36 of file room_sense.cpp.

36 {
37 if (x <= 0.0f)
38 return 0.0f;
39 if (x >= 1.0f)
40 return 1.0f - 0.25f / (1.0f + (x - 1.0f) * 4.0f);
41 return x * (1.0f - 0.25f * x);
42}
int x
Definition simple.h:92

References softKnee(), and x.

Referenced by softKnee().

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