PDA

View Full Version : How to see RGB values for colors in color selector?




chinnybloke
Aug 10, 2010, 07:33 AM
I have an app with view background colors of the Cayenne standard color from the crayon selection options. I would like to change the background color of a view showing a grouped tableview. I know how to do this programmatically by setting the RGB values (and can set it to any color I like), but how do I find what the RGB values are of the standard Cayenne color to make it the same? The reason I need to do it programmatically is I cannot seem to get the view to change its background color in IB when a tableview is on the view.


Thanks,
CB



robbieduncan
Aug 10, 2010, 07:39 AM
Assuming you have an image of this colour on your screen try using Pixie from the developer tools.

PhoneyDeveloper
Aug 10, 2010, 08:48 AM
You won't have much luck doing screen grabs to determine colors since the images are all antialiased.

In IB select the color you want from the crayons palette, like Cayenne. Then switch the color picker to RGB Sliders and you can read the values. Cayenne is 128/0/0.

chinnybloke
Aug 11, 2010, 03:06 PM
Thanks for this but when i switch to slider view I only see grayscale slider, brightness and opacity. I am not sure where you mean to look

In IB select the color you want from the crayons palette, like Cayenne. Then switch the color picker to RGB Sliders and you can read the values. Cayenne is 128/0/0.

chown33
Aug 11, 2010, 05:57 PM
Thanks for this but when i switch to slider view I only see grayscale slider, brightness and opacity. I am not sure where you mean to look

Click the popup that says "Gray Scale Slider".

Choose "RGB Sliders".

Observe 3 sliders appear: Red, Green, Blue.