MCPcopy Create free account
hub / github.com/FastLED/FastLED / setValue

Method setValue

src/fl/ui/slider.h:35–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 float getMax() const { return mMax; }
34 float getMin() const { return mMin; }
35 void setValue(float value) { mValue = fl::max(mMin, fl::min(mMax, value)); }
36 operator float() const { return mValue; }
37 operator u8() const { return static_cast<u8>(mValue); }
38 operator u16() const { return static_cast<u16>(mValue); }

Callers 1

UISliderClass · 0.45

Calls 1

maxFunction · 0.85

Tested by

no test coverage detected