How to get a NSColor right?
How to get a NSColor right?
- Subject: How to get a NSColor right?
- From: Tito Ciuro <email@hidden>
- Date: Mon, 3 Feb 2003 14:53:09 +0100
Hello,
Using Pixie I get the following pixel color: {R = 0.8784, G = 0.8784, B
= 0.8784}
Calling:
[NSColor colorWithCalibratedRed:0.8784 green:0.8784 blue:0.8784
alpha:0.0]
Pixie returns
{R = 0.0000, G = 0.0000, B = 0.0000}
[NSColor colorWithCalibratedRed:0.8784 green:0.8784 blue:0.8784
alpha:0.5]
Pixie returns
{R = 0.2235, G = 0.2235, B = 0.2235}
[NSColor colorWithCalibratedRed:0.8784 green:0.8784 blue:0.8784
alpha:1.0]
Pixie returns
{R = 0.4392, G = 0.4392, B = 0.4392}
It looks like it's quite complicated to obtain the right RGB value with
an alpha value. How do you get the same RGB as reported by Pixie?
Thanks,
-- Tito
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.