Using HYPE and Processing, this is an example of how I am able to extract color palettes from images on the fly.