FastLED 3.9.15
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) : mOwner(owner) {}
138 void accept(const CRGBPalette16 &palette) { mOwner.set(&palette); }
139 void accept(const CRGBPalette32 &palette) { mOwner.set(&palette); }
140 void accept(const CRGBPalette256 &palette) { mOwner.set(&palette); }
141 void accept(const GradientFunction &func) { 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)

References Gradient(), fl::GradientInlined::getVariant(), and palette().

+ Here is the call graph for this function: