PDA

View Full Version : CGColors?




kierster
Dec 23, 2008, 11:03 AM
what header file is the CGColor object in? I get errors when I try to use them. thanks



neil.b
Dec 23, 2008, 11:50 AM
CGColor is a read-only property.

What is it you're trying to do?

kierster
Dec 23, 2008, 06:43 PM
ok that would explain it lol.. thanks :p I wanted to make a function that would just have an R, G, B and alpha entered (ie 255, 255, 255, 1.0) and then return a CGColor that would have the proper format (1.0, 1.0, 1.0, 1.0). Not too nessecary, just for convenience :D

PhoneyDeveloper
Dec 23, 2008, 11:26 PM
You mean like

CGColorCreateGenericRGB()

?