separated color manipulation into lib/ for future use