• 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: NSColor question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSColor question (From: Luc Vandal <email@hidden>)

  • Prev by Date: Re: NSColor question
  • Next by Date: Re: NSColor question
  • Previous by thread: Re: NSColor question
  • Next by thread: Re: NSColor question
  • Index(es):
    • Date
    • Thread