Not sure this is possible, but looking to write a script that would return the average hex or rgb value for an image. I know it can be done in AS but looking to do it in JavaScript.
Not sure this is possible, but looking to write a script that would return
Share
AFAIK, the only way to do this is with
<canvas/>…DEMO V2: http://jsfiddle.net/xLF38/818/
Note, this will only work with images on the same domain and in browsers that support HTML5 canvas:
For IE, check out excanvas.