Hi Dan,
I built a color picker, and I set a mask for it, and it still lets you choose a color even outside the mask.
I checked and even if I build an object on the color picker, even above the object it still lets you choose a color.
Is there a way to limit it? I want it so that outside the mask there will be no option to choose a color.
I'm attaching the code both with a mask and without a mask and with an object above. and pictures.
Thanks.
const cp = new ColorPicker()
.show()
.change(() => {
zog(cp.selectedColor);
zog(cp.selectedAlpha);
});
let mask = new Rectangle(100, 100, "#FFF65B").center().mov(0,-50).top().alp(0);
cp.setMask(mask)
or:
const cp = new ColorPicker()
.show()
.change(() => {
zog(cp.selectedColor);
zog(cp.selectedAlpha);
});
let mask = new Rectangle(100, 100, "#FFF65B").center().mov(0,-50).top()