spectrum icon indicating copy to clipboard operation
spectrum copied to clipboard

feature: ability to add to selection palette with code

Open rob-lindman opened this issue 6 years ago • 0 comments

would like to be able to dynamically add color(s) to the selection palette with code.

for example:

$("#clr-border").spectrum.selectionPalette.add("#c0c0c0");

perhaps also this would have a parameter for the localstorage keys.

right now the only obviously apparent way is to select a color manually. I have an eyedropper tool which grabs a color from the canvas and it would be nice if that color was added to the selection palette.

rob-lindman avatar Nov 23 '18 18:11 rob-lindman