• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: RGB color values for NSColor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: RGB color values for NSColor (From: Andreas Mayer <email@hidden>)
 >Re: RGB color values for NSColor (From: Rhon Fitzwater <email@hidden>)

  • Prev by Date: Slow converting index color to RGB
  • Next by Date: Odd Quicktime Problem
  • Previous by thread: Re: RGB color values for NSColor
  • Next by thread: sorry list, please ignore my last post ... i made a mistake
  • Index(es):
    • Date
    • Thread