• 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: Rhon Fitzwater <email@hidden>
  • Date: Tue, 26 Aug 2003 23:38:33 -0400

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.

  • Follow-Ups:
    • Re: RGB color values for NSColor
      • From: Scott Anguish <email@hidden>
References: 
 >Re: RGB color values for NSColor (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Archiving and Unarchiving
  • Next by Date: Slow converting index color to RGB
  • Previous by thread: Re: RGB color values for NSColor
  • Next by thread: Re: RGB color values for NSColor
  • Index(es):
    • Date
    • Thread