S
S
s3ek2011-06-28 21:33:17
iPhone
s3ek, 2011-06-28 21:33:17

Quartz, NSColor and color?

How can I convert colors from a layout in Photoshop to NSColor colors? No matter how much he fought, they constantly differ, as if brighter.
How I solved problems:
1. Made me look

[[NSColor colorWithCalibratedRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:1.0] set];

2. Changed the color space to sRGB
NSColorSpace *sRGB = [NSColorSpace sRGBColorSpace];

Already better, but still brighter.
With this photoshop, the layout is in RGB / 8, and for the experiment it was also translated into sRGB, but nothing helped, the colors did not change.
I don’t know what to do anymore, I rummaged through the entire stack and Google.
Can someone advise some converters or some other tricky ways?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
K
Ku6ep, 2011-08-02
@Ku6ep

And if the alpha is reduced a bit?
[UIColor colorWithRed:0.0 green:1.0 blue:0.0 alpha:0.5]
On a black background of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question