Re: RGB color values for NSColor
Re: RGB color values for NSColor
- Subject: Re: RGB color values for NSColor
- From: Scott Anguish <email@hidden>
- Date: Wed, 27 Aug 2003 00:41:08 -0400
the values are between 0 and 1, so you'll need to divide by the
appropriate factor.
On Aug 26, 2003, at 11:38 PM, Rhon Fitzwater wrote:
I tried this:
NSColor *col = [NSColor colorWithCalibratedRed:44728 green:43098
blue:65535 alpha:1.0];
The values are what I get from my applescript program that stores the
values of a color well. Are these values totally off? Is there some
conversion that I need to be doing?
Any suggestions?
Thanks,
-Rhon
On Tuesday, August 26, 2003, at 8:06 PM, Andreas Mayer wrote:
Am Mittwoch, 27.08.03 um 01:25 Uhr schrieb Rhon Fitzwater:
can anyone show me some code that will do this or lead me in the
right direction.
Look at NSColor's colorWithCalibratedRed:green:blue:alpha: class
method.
bye. Andreas.
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.