HTML5 canvas RGB histogram

This is yet another demo from around 2009. It’s simple enough. Click a button, draw an unbinned RGB histogram of the source image.

It’s powered by an early version of an old JS toolkit I wrote called JSImage. The latest version is available at my JSImage github repo. Don’t be fooled by the 2011 commits, those are just artifacts from svn->git migration. No guarantees that the histo’s are actually correct. :)

Original image

Your browser does not support the <canvas> element. Lame.

Red
Your browser does not support the <canvas> element. Lame.

Green
Your browser does not support the <canvas> element. Lame.

Blue
Your browser does not support the <canvas> element. Lame.

I’m pretty sure the results are wrong, but here, years later, I can’t be bothered to fix it. ;)