Canvas Color Picker

Colour Picker Canvas

I really quite liked the Color Sphere by Color Jack. However the code was a little, um, terse. Having a look at his code it looks like he uses the image as a reference and then computes the HSV values using the algorithm&nbsp; that's used to produce the picture - pretty cool.

But wouldn't it be simpler to just pick the pixel in the image when you click?? Sure! but... you can't, due to javascript limitations/security. Damn. Oh wait what about <canvas>.

So I did a little experiment and here is the result (sorry won't work in IE8).