Update color.cpp

fixed minor bug. code compiles sucessfully.