Re: [iPhone 3.1] Core Animation that leaves a trial?
Re: [iPhone 3.1] Core Animation that leaves a trial?
- Subject: Re: [iPhone 3.1] Core Animation that leaves a trial?
- From: David Duncan <email@hidden>
- Date: Thu, 25 Feb 2010 17:32:02 -0800
On Feb 25, 2010, at 4:55 PM, John Michael Zorko wrote:
> I'm interested in having a CAKeyframeAnimation leave a "trail" i.e. imagine the image of a pencil being animated across the screen -- I want to draw a path of where the pencil has been along with the animated pencil. However, i'm not sure how to do this, since Core Animation is doing the drawing for me. If anyone can offer some pointers, i'd be quite appreciative :-)
There isn't a simple way to do this on iPhone OS – the class that would make it simpler (CAEmitterLayer) is not available.
There are various approaches that all involve doing the work yourself, which means breaking the path apart into its components (CGPathApply) and doing the interpolation yourself.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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