jQuery Color Picker


Here is a very rudimentary color picker for jQuery which i developed for a boardgame interface i'm working on. After looking around on the web, i didn't find one which could be represented in a very small space, and the one i really wanted is not only visually too big for what i'm doing, but is also only released under the GNU GPL license, a license i don't generally care for. So... here's mine...

If you would like to see a standalone demo of the colorpicker, click here.

License: Public Domain

Filename Size (bytes)
sgbeal-colorpicker-20070712.jquery.yuimin.js 875
sgbeal-colorpicker-20070712.jquery.pack.js 1251
sgbeal-colorpicker-20070712.jquery.min.js 1000
sgbeal-colorpicker-20070712.jquery.js 3951
sgbeal-colorpicker-20070711.jquery.yuimin.js 1242
sgbeal-colorpicker-20070711.jquery.pack.js 1524
sgbeal-colorpicker-20070711.jquery.min.js 1358
sgbeal-colorpicker-20070711.jquery.js 3879

What the various *.js files are:
  • *.jquery.js or jquery.PLUGIN_NAME.js = the full-fledged, human-readable/editable source code files, including documentation for using the code.
  • *.pack.js = "packed" source code files, meaning they are optimized for maximum space savings (which also means obfuscated). They are created using one of the packers derived from http://dean.edwards.name/packer/.
  • *.min.js = source code files "minimized" for space savings using jsmin. They are not obfuscated, but are nonetheless not intended for human consumption.
  • *.yuimin.js = similar to the .min.js files, but these are compressed using the YUI minifier, which claims to be less error-prone than the conventional PACK method and smaller than normal MINinification. They are obfuscated, not intended for human consumption.
When deploying applications which use this code, the compressed versions are recommended, as they help reduce the download time of the application. Also, combining multiple scripts into a single file can notably reduce the download overhead.


If you use the color picker and like it, please go rate it on the jQuery site.