Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (18 sloc) 1.22 KB


The No Hassle Colorpicker

I wanted a colorpicker that didn't require images, and that had an API that made sense to me as a developer who has worked with color in a number of applications. I had used existing plugins (which I was quite grateful for), but decided that I would make a smaller, simpler one.

I started using canvas, then switched to CSS gradients, since it turned out to be easier to manage, and worked better across browsers.

See demo and docs:

Thanks to the following places:

The tool I use for measuring JavaScript size:

// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
// @output_file_name default.js
// @code_url
// ==/ClosureCompiler==

Here is the JavaScript size

Original Size:    35.93KB (11.25KB gzipped)
Compiled Size:  17.56KB (6.79KB gzipped)
Jump to Line
Something went wrong with that request. Please try again.