Re: NSColor question
Re: NSColor question
- Subject: Re: NSColor question
- From: Stephane Sudre <email@hidden>
- Date: Mon, 25 Apr 2005 18:19:12 +0200
On 25 avr. 05, at 18:04, Luc Vandal wrote:
Hi,
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!
I don't see why 1.0 is more silly than 255. When you paint in the real
world, you don't create a yellow with 255 gallons of red paint and 255
gallons of green paint.
Integers from 0 to 255 are nice when you deals with 24-Bit color. But
what about 48-bit color then?
You can probably create a category for NSColor to add methods which
takes 0-255 as parameter.
_______________________________________________
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