Re: NSColor question
Re: NSColor question
- Subject: Re: NSColor question
- From: Nicko van Someren <email@hidden>
- Date: Mon, 25 Apr 2005 17:15:26 +0100
On 25 Apr 2005, at 17:04, Luc Vandal wrote:
isn't there a way to create a NSColor object with "real" color values
like 0xff00ff or 255,0,255? Why use float and silly 0.5 or 1.0 values?
I don't get it!
Those values are only "real" is you happen to be in an 8 bit per colour
plain RGB display. If your display colour is either deeper or
shallower than this what would you expect to happen? I look forward to
having a display card with 36bpp, just like my digital camera, and in
that case I don't want to my magenta to come our one sixteenth of it's
full intensity, which is what I'd get if I put 255,0,255 into the pixel
rather than 4095,0,4095. Passing values which represent the fraction
of full intensity is vastly more portable.
Nicko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden