https://github.com/ontouchstart/sandbox/tree/master/2014-08-19/sandbox/color.erl