Re: Animating color fading
Re: Animating color fading
- Subject: Re: Animating color fading
- From: Jens Alfke <email@hidden>
- Date: Sun, 29 Nov 2009 09:50:11 -0800
On Nov 27, 2009, at 8:03 AM, Steve Moore wrote:
> I think this is really a color question, though I'm not sure. I figured I'd just set a timer and redraw the cell (drawInteriorWithFrame: inView: ) applying an ever decreasing alpha but this just results in the cell eventually being drawn black.
Don't use alpha for this — drawing over and over again with translucent color will produce weird effects like that. Instead, blend the red color with an ever-increasing fraction of the original color.
—Jens_______________________________________________
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