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

◆ Gradient() [2/5]

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

Definition at line 130 of file gradient.cpp.

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

References Gradient(), palette, fl::GradientInlined::variant(), and fl::Variant< Types >::visit().

+ Here is the call graph for this function: