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: Quincey Morris <email@hidden>
- Date: Wed, 28 Jan 2009 23:09:33 -0800
On Jan 28, 2009, at 22:32, Kyle Sluder wrote:
On Wed, Jan 28, 2009 at 10:57 AM, Thomas Davie <email@hidden>
wrote:
This solution will also throw sub-pixel anti-aliasing in the bin.
Perhaps the better solution is to draw the text as normal and then
re-draw the background with the appropriate alpha on top.
OK, I'll be the killjoy.
Perhaps the even better solution is not to spend the time on doing the
fading at all.
The notable case (AFAIK) of using this text-fades-out effect is in
path controls, where its function seems to be not so much to look cool
(although it *does* look cool), but to indicate to the user that there
is more text *that can be revealed by mousing over the incomplete
text*. The reveal itself is an even cooler animation involving stuff
sliding as well as fading in.
If the OP is intending to provide the text-reveal animation too,
there's more coding to do than just getting a sub-pixel-anti-aliased
text fade to look right. If it serves no functional purpose (like it
does in the path control), then maybe it's not such a great idea.
Compare the path control metaphor to the table view metaphor.
Truncated text in a table view column typically gets fadeless
truncation and a "...", and the full text reveal is a tool-tip-style
overlay, not an animation.
So what's the correct UI metaphor in the OP's scenario? Perhaps not
fading after all.
FWIW
_______________________________________________
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