http://stackoverflow.com/questions/5142556/algorithm-to-add-color-in-bezier-curves