• 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: How to draw text with fade out effect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw text with fade out effect?


  • Subject: Re: How to draw text with fade out effect?
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 1 Feb 2009 05:04:17 -0500

On Sun, Feb 1, 2009 at 4:35 AM, Benjamin Dobson
<email@hidden> wrote:
> Am I missing something or could you use an NSGradient object to do this?

Sure, if you used a gradient or solid color to draw the background in
the first place.  Just give the starting color an alpha of 0 and the
ending color an alpha of 1.

Or you could follow Ken Ferry's advice and take the direct approach by
applying a gradient mask to the context before drawing the text.
That's probably the best way to do it.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Re: How to draw text with fade out effect? (From: Benjamin Dobson <email@hidden>)

  • Prev by Date: Re: Drawing Invalidation Question
  • Next by Date: Re: Drawing Invalidation Question
  • Previous by thread: Re: How to draw text with fade out effect?
  • Next by thread: Re: How to draw text with fade out effect?
  • Index(es):
    • Date
    • Thread