Pick a color

Current color:


Confirm to your browser that you would like to allow this page to have access to any cameras connected to your computer or smartphone. Don't worry, this all runs in-browser, I don't send the images anywhere. View-source if you don't believe me.

Drag a box on the picture. The average color in the box will be set as the page background, and the colors that are in the box will be highlighted in the image.


A recent talk from some folks at the EPA got me interested in automatic color detection (the talk was in regardes to Harmful Algal Blooms and enabling citizens to report them in the wild).

This works with Google Chrome on desktop and mobile devices. I don't know if it works on Safari yet. I'd really like to get it to work with Firefox, but it causes an error "NS_ERROR_NOT_AVAILABLE" to draw the Video element to a Canvas. Does anyone know why that happens and if there is a fix? Let me know: sean.mcbeth+vid@gmail.com

All of the source is in the page, if you want to check it out.