bgrins/spectrum

Is there option to make Palette visible vertically instead of horizontally

swaroopg92 opened this issue · 1 comments

When showSelectionPalette is set true, the Selectionpalette expands horizontally.
image
But the bottom of this palette is entirely empty and unecessary space, can I make this palette vertical?
If yes, how to do so?
Any help appreciated. Thanks.

To show your palette vertically, you should modify the palette array to an array-of-arrays. From the examples:

 palette: [
        ['black', 'white', 'blanchedalmond',
        'rgb(255, 128, 0);', 'hsv 100 70 50'],
        ['red', 'yellow', 'green', 'blue', 'violet']
    ]