Changed implementation for colors in graphics