I\'m trying to build a utility like this http://labs.ideeinc.com/multicolr, but I don\'t know which algorithm they are using, Does anyone know?