130 {
131
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)
void Copy(byte x0, byte y0, byte x1, byte y1, byte x2, byte y2)