Re: How to draw text with fade out effect?
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