Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nashyo

macrumors 6502
Original poster
[UIColor colorWithRed:float green:float blue:float alpha:float];

Is there a resource online for establishing what the values should be set as for a specific colour? Like a colour palette or something visual?
 
in the Interface Builder, when you click color, you can switch around to RGB.
Because the values for "with color" are in RGB, and you have to divide by 255, because it's from 0-1 scale.
 
If you have on-screen color samples, run DigitalColor Meter.app, located in your /Utilities folder. From its popup, choose "RGB as Percentage", then mentally move the decimal point 2 places left.
 
thanks.

the utilities app digital colour meter, doesn't have 'display as percentage' as an option. but it does have 'display native values'. these values go up to 255 i think.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.