move color functions and globals to their own helper file