Functions and classes used to animation the Generalized 1-D mode.
Copyright 2012, Lance Larsen Licensed under the MIT license
Uses Animate.js
GMA Animation | Functions and classes used to animation the Generalized 1-D mode. |
Global | Globally accessible functions. |
Functions | |
AnimatedGMAPlotFactory | This generates a factory function that is used by the GMAmode object. |
wrapColorsArray | Makes a colors array into an object with ‘next’ if needed. |
ColorSwitcher | This class allows you to switch the color set that is used to plot animation curves. |
Functions | |
ColorSwitcher | Creates a new ColorSwitcher object. |
ContourMorph | This class animates a single contour |
Functions | |
ContourMorph | Creates a new ContourMorph object. |
setParam | Sets the contour plot based on the value of the parameter. |
Globally accessible functions.
Functions | |
AnimatedGMAPlotFactory | This generates a factory function that is used by the GMAmode object. |
wrapColorsArray | Makes a colors array into an object with ‘next’ if needed. |
This generates a factory function that is used by the GMAmode object.
colors | An array of colors, or an object with a ‘next’ function that returns the next plot color to use each time ‘next’ is called. |
A factory function is returned that is called as
factory(gmaobj, stepn, contour)
where ‘gmaobj’ is a GMAmode object, ‘stepn’ is the index used to get the contour, and ‘contour’ is an object with field ‘t’ and ‘pts’. Both are arrays of the same size, with ‘t’ being the parameter value, and ‘pts’ the associated ODE solution points.
Makes a colors array into an object with ‘next’ if needed.
colors | An array of colors, or an object with a ‘next’ function that returns the next color each time next is called. |
If an array of colors is passed to AnimatedGMAPlotFactory this will return a new object that wraps the array and includes a ‘next’ function that is used to loop through the colors.
This class allows you to switch the color set that is used to plot animation curves. Color sets are passed to the constructor along with the name of the initial set.
Functions | |
ColorSwitcher | Creates a new ColorSwitcher object. |
This class animates a single contour
Functions | |
ContourMorph | Creates a new ContourMorph object. |
setParam | Sets the contour plot based on the value of the parameter. |
Sets the contour plot based on the value of the parameter.
ContourMorph.prototype.setParam = function( param )