• 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: Animating color fading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Animating color fading (From: Steve Moore <email@hidden>)

  • Prev by Date: Re: Defining and using constants in Objective C
  • Next by Date: RGBA UIColor Information At CGPoint?
  • Previous by thread: Animating color fading
  • Next by thread: Polymorphic relationship and migration
  • Index(es):
    • Date
    • Thread