How to delete points in color gradient (gradient picker)?

Simple question but can figure out. Thanks

Hello sailor!
Would you be kind enough to upload your script?

Best regards,
Sir Ernest Shackleton

Yeah definitely.

For example, I have five dots here indicate five colors, how do I delete one of them to make it four dots?

You only need to drag them outside the Gradient component area.

That’s how it works. Thanks