adds color generating functions from old project