More cleanup:

* Remove calculate from function names
* Pass rgb colors as an object with named keys instead of an array.