Animations

There are two types of animations in the presentation library: slide intro animations, and element animations. The included ones are presented here below.

Slide Intro Animations

Slide intro animations need to have names that end with Intro to be usable from the presentation language (the presentation language automatically adds the suffix Intro before resolving the name). The following ones are included in the library, but custom ones can be created as well:

Custom Intro Animations

To create custom animations, simply create a new subclass to presentation.SlideIntro, and override the draw member.

Element Animations

Element animations need to have names that end in Animation to be usable from the presentation language (the presentation language automatically adds the suffix Animation before resolving the name). The following animations are provided by the library:

Custom Element Animations

To create custom element animations, simply create a subclass to presentation.Animation. The subclass must have a constructor that accepts at least one Nat. The presentation language passes the step to which the animation applies as the first parameter. This is expected to be forwarded to the superclass' constructor.

The class then needs to override the following two members:

The following convenience functions are also available to simplify implementation of animations:

Finally, there are a few convenience classes that perform some common tasks: