uses jQuery, the jQuery Color plugin and PHP's GD library functions to calculate the average colour of an image and animate the background colour of the image's parent object.
see the ambilight experiment description for details.