The title might not make much sense. But I am starting to play with Philips Hue and it seems you can control them from a simple html page.
http://www.developers.meethue.com/documentation/getting-started
Anyway, what I am trying to program, is an applet running off an html page. That analyses the colours of the screen being displayed at the time and changes the bulbs to glow that colour.
The result would be the lights changing according to what i am doing on my computer at the time, whether i am watching a movie, or playing a game.
How do i read the colours of the screen from an html page? preferable using JavaScript if possible.