simpleAnimation | R Documentation |
Functions to create simple animations by varying parameters
parameterAdjust(input) addSimpleAnimation(input, parametersAdd = NULL, parametersMultiply = NULL, ...)
input |
a component |
parametersAdd |
a named list of parameters and changes. e.g. list(b=2,d=2) would add 2 to the value of b and d in input@data. |
parametersMultiply |
a named list of parameters and scale factors. e.g. list(b=2,d=2) would double the value of b and d in input@data. |
... |
function parameters for parameterAdjust from addSimpleAnimation. |
The simplest way to create an animation is for a parameter to be incremented or multiplied by a constant factor each frame. simpleAnimation adds parameters and a function to an art object to do this.
parameterAdjust and addSimpleAnimation both return components
art=new("component",x=0,y=0) art=addSimpleAnimation(art,list(x=0.01)) easyPlot(art,frames=1:100,framesToPlot=1:100,mode=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.