Results 1 to 4 of 4

Thread: [WPF/Silverlight] Animation Engine like Tweener

  1. #1

    [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:
    Code:
    ArtefactAnimator.AddEase(element, Canvas.LeftProperty, 250, .7, AnimationTransitions.CubicEaseOut, 0);
    And unlike most animation engines for WPF and Silverlight (currently), you can ease multiple properties on an object.

    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);
    };
    Enjoy!

  2. #2
    Looks really cool

    Great, now even Kirupa is { facebooking | twittering }

  3. #3
    Thanks! 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.

  4. #4

    Barcode 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012