On 24-Oct-08, at 10:50 PM, Michael A. Crawford wrote:

I need to learn how to take three or four Core-Animation layers and composite them on onto one another while animating, in order to simulate a complex gauge. I'm assuming this will be a lot easier than it is in Windows.

The different elements (needles and such) of the gauge will be on their own layer and will animate by rotating around the center. Additionally, I need for most of the layer to be transparent except for the gauge elements. Any example code you can point to that will help me to assemble these different functional elements would be greatly appreciated.

I'm guessing you mean a gauge like the one shown in the doc in this article?


http://developer.apple.com/documentation/GraphicsImaging/Conceptual/Animation_Overview/MacOSXAnimTech/chapter_4_section_2.html#/ /apple_ref/doc/uid/TP40004952-CH6-SW4

This is the code I used to generate the movie that movie. It was written specifically to make that QuickTime movie, nothing more.

This hasn't been touched in more than a year except to add the disclaimer and to make sure it still compiles. It may leak. But it'll give you some ideas.

http://www.abandoninplace.com/blog/2008/10/simple-core-animation-meter-vi.html
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to