134 {
135
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)