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

NSColor opacity


  • Subject: NSColor opacity
  • From: Ken Tozier <email@hidden>
  • Date: Mon, 29 Jan 2007 23:18:26 -0500

Hi

I'm drawing an NSColor to a custom view and am having problems with the opacity of the color. Intuitively, I would think that setting an alpha of .1 to an RGB color would produce a 10 percent color screen but it doesn't. What happens is that the color approaches black as the alpha decreases when logic would conclude it should approach transparent. I can make a lighter screen by setting a high opacity (, 8, .9) but this obscures the underlying image more not less.

How do you do something like this?

Thanks for any help

Ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSColor opacity
      • From: Andreas Mayer <email@hidden>
    • Re: NSColor opacity
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Application information that all users can see
  • Next by Date: Re: NSColor opacity
  • Previous by thread: Re: NSTimer pauses when opening a menu HELP!
  • Next by thread: Re: NSColor opacity
  • Index(es):
    • Date
    • Thread