UIColor and NSColor were changed into CGColor.