FastLED 3.10.8
Loading...
Searching...
No Matches

◆ Gradient() [2/5]

fl::Gradient::Gradient ( const GradientInlined & other)

Definition at line 134 of file gradient.cpp.hpp.

134 {
135 // Visitor is cumbersome but guarantees all paths are handled.
136 struct Copy {
137 Copy(Gradient &owner) FL_NO_EXCEPT : mOwner(owner) {}
138 void accept(const CRGBPalette16 &palette) FL_NO_EXCEPT { mOwner.set(&palette); }
139 void accept(const CRGBPalette32 &palette) FL_NO_EXCEPT { mOwner.set(&palette); }
140 void accept(const CRGBPalette256 &palette) FL_NO_EXCEPT { mOwner.set(&palette); }
141 void accept(const GradientFunction &func) FL_NO_EXCEPT { mOwner.set(func); }
142 Gradient &mOwner;
143 };
144 Copy copy_to_self(*this);
145 other.getVariant().visit(copy_to_self);
146}
UINumberField palette("Palette", 0, 0, 2)
#define FL_NO_EXCEPT

References Gradient(), fl::FL_NO_EXCEPT, and palette().

+ Here is the call graph for this function: