rgbaColorPicker Update – v1.1

Friday I went through and updated the color picker to version 1.0, then shortly after to version 1.1, to keep things simple I’ll just combine both updates into a single post. First a feature breakdown.

  • Picker now changes side to stay within widow.
  • Turned script into a proper jQuery plugin.
  • Consolidated single file and external stylesheet versions into one file.
  • Fixed CSS bug involving color display box.
  • Made index.html more useful.
  • Fixed a bug in the new read me formatting
  • Clicking outside color selector box now closes it.
  • Opening selector box no longer reflows document.
  • Fixed a bug causing selection mode to be “stuck” when you moved the mouse out of a selector area.
  • Moved colorbase datauri image into stylesheet.
  • Included the stylesheet into the plugin (single file now).
  • Included minified version of the script.
  • Updated index.html and stresstest.html as needed.

Quite a list there. The basics are that it’s now a jQuery plugin, as such it can be called different, and passed with certain options. Those options are for an external stylesheet, and a callback. The external stylesheet will load a linked file at that location instead of using the default built-in one, and the callback will fire every time the color is changed. The index.html makes use of this in the new rainbow boxes, they container box changes whenever to color changed.

Also some stuff that probably should have been in v0.8 were finally added, it acts like a real pop-up now, no document reflow, and when you click outside the box it closes, also an annoying bug that I finally diagnosed (and then promptly squashed).

The new, updated version is up on GitHub, you can go to the rgbaColorPicker GitHub Page if you want to fork it or the rgbaColor Picker GitHub Download page if you just want to download it. Alternatively  you can check it out on the new rgbaColorPicker jQuery plugin page. If you just want to see it in action you can at the links below:

rgbaColorPicker Example

rgbaColorPicker Stress Test

If you find any bugs you can fork it, but if you don’t want to be bothered fixing them yourself you can post them here or on the rgbaColorPicker GitHub Issues section and I’ll take a look, same for if you have a feature request, I’ll see what I can do about incorporating them.

Leave a Reply

Your email address will not be published. Required fields are marked *