ofColor to and from CGColor