Questions tagged [spectrumjs]

Spectrum is a JavaScript color picker plugin using the jQuery framework.

Spectrum is a color picker plugin, made by Brian Grinstead, that's used in Chrome, Firefox, and Safari devtools to make picking colors easier for web developers and designers. Further documentation on this plugin can be found at https://bgrins.github.io/spectrum/

37 questions
0
votes
1 answer

How to Rotate 180 Deg

I implemented spectrum color picker. I'm trying to rotate the .alphaSlider 180 deg. Of course I can do it with CSS (using transform: rotate(180deg)), but that's sort of a hack, and, there will anyway be other problems. I want to do it using the…
Horay
  • 1,388
  • 2
  • 19
  • 36
0
votes
1 answer

Make width not relative to parent

I implemented spectrum color picker, and I want to add the color picker to a draggable element. (I implemented the draggable element through JQuery UI.) This way, when you drag the draggable element, the color picker will go along with it. I was…
Horay
  • 1,388
  • 2
  • 19
  • 36
0
votes
3 answers

Add double click event

I implemented spectrum color picker, and I am trying to add a double click event to the palettes. (The one that has the predefined colors, the class name is: sp-thumb-el.) I added the following code after line 476: paletteContainer.on("dblclick",…
Horay
  • 1,388
  • 2
  • 19
  • 36
0
votes
1 answer

Div isn't in correct position

I'm using Spectrum color picker plugin. There are 2 containers. 1 - .sp-picker-container and .sp-palette-container. The layout of the containers are created with float. I don't want that because that isn't the correct way to lay things out. (see…
Jessica
  • 9,379
  • 14
  • 65
  • 136
0
votes
1 answer

Spectrum not loading when adding my own settings

I'm using Spectrum color picker plugin. I have 2 color pickers showing. I want the majority of the settings to be the same. The only setting differences is color, localStorageKey, and move: function (color). The rest of the settings should be the…
Jessica
  • 9,379
  • 14
  • 65
  • 136
0
votes
0 answers

Trying to change font color in fabricjs application, get "Cannot set property 'onchange' of null"

I get "Cannot set property 'onchange' of null" console error. When I try to wrap the handler in a window.onload function, it makes the function I am trying to call undefined. I suspect it has something to do with the fact that Spectrumjs "sp-choose"…
Scott Floyd
  • 76
  • 1
  • 9
-3
votes
1 answer

Make 3 input fields instead of 1

I implemented Spectrum Color Picker. There are a couple slight changes I want to make. I want to have rgb colors in 3 different input fields. I want to have hex color in another input field. I want to have name color (ex. red, brown etc.) in…
Horay
  • 1,388
  • 2
  • 19
  • 36
1 2
3