I am working on an iPhone application which uses various colors. When user selects the particular color button I set drawing color accordingly. I am getting the color for so
The values are in the 0.0 to 1.0 range.
0.0
1.0
E.g. divide by 255., but remember the decimal dot so you get floating point division and not integer division.
255.
Like
selectedColor = [UIColor colorWithRed:14.0/255.0 green:114.0/255.0 blue:199.0/255.0 alpha:1];