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

Re: color


  • Subject: Re: color
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Thu, 29 May 2003 23:47:42 +0100

From: Greg Casey <email@hidden>
Date: Thu May 29, 2003 6:36:42 PM US/Eastern
To: Cocoa-Dev List <email@hidden>
Subject: Re: color

NSColor *color = [NSColor colorWithCalibratedRed:51 green:204 blue:255 alpha:1.0];

Just convert the hex values from red:33 green:CC blue:FF to decimal as shown above.

This would result in white :-) The RGB values have to be between 0.0 and 1.0, and are clipped to that range.

Alastair.
_______________________________________________
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: color
      • From: Greg Casey <email@hidden>
References: 
 >Re: color (From: Greg Casey <email@hidden>)

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