Is it possible to query a HTML Canvas object to get the color at a specific location?
Try the getImageData method:
var data = context.getImageData(x, y, 1, 1).data; var rgb = [ data[0], data[1], data[2] ];