Results 1 to 4 of 4
-
April 3rd, 2010, 06:05 PM #113Registered User
posts
[WPF/Silverlight] Animation Engine like Tweener
I just wanted to announce the release of an Open Source animation engine for WPF and Silverlight which mimics Tweener's syntax. If you’re coming from the Flash realm to Silverlight ( work or play ) Artefact Animator can help the transition.
http://artefactanimator.codeplex.com/
It’s still a little fresh and will be in constant flux for a bit, but it’s a great prototyping tool.
The syntax is pretty straight forward:
And unlike most animation engines for WPF and Silverlight (currently), you can ease multiple properties on an object.Code:ArtefactAnimator.AddEase(element, Canvas.LeftProperty, 250, .7, AnimationTransitions.CubicEaseOut, 0);
Enjoy!Code:Application.Current.RootVisual.MouseLeftButtonDown += (s, args) => { // position info Point pt = args.GetPosition(null); // transition info double time = .8; double delay = 0; PercentHandler ease = AnimationTransitions.CubicEaseOut; // ease ArtefactAnimator.AddEase(element, new object[] { AnimationTypes.X, AnimationTypes.Y }, new object[] { pt.X, pt.Y }, time, ease, delay); };
-
April 3rd, 2010, 06:13 PM #2
Looks really cool
-
April 4th, 2010, 03:00 PM #313Registered User
postsThanks! It's really just a start, so now it's onto "Release early and often".
One of the next steps is integrating a custom ease editor I've built, inspired by http://laco.wz.cz/tween/?page=customeasing. I have a function wrapper for Flash too so you can pass the same custom equations to WPF & Silverlight as you will for your favorite Flash tweening engine.
-
April 27th, 2010, 05:18 PM #413Registered User
posts
New Examples + Code
I've posted some new samples with code snippets using the Artefact Animator. Hopefully the simplicity + flexibility is apparent.
http://artefactanimator.codeplex.com...title=examples

Reply With Quote


Bookmarks