• 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
How to get a NSColor right?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Cocoa - XML - NSDictionary
  • Next by Date: Re: Low-cost Application Icons
  • Previous by thread: Re: Cocoa - XML - NSDictionary
  • Next by thread: NSFileSystemFreeSize troubles
  • Index(es):
    • Date
    • Thread