JEase | R Documentation |
These functions are passed by name (i.e. without following parentheses) as the
timing
parameter to the JTransition
function.
JEase(x)
JLinear(x)
JEaseIn(x)
JEaseOut(x)
JEaseInOut(x)
JBounce(x)
x |
x-value passed to the function automatically. See |
A timing function.
JTransition
, JScene
, JBezier
, JLoop
# Vary width from 0.1 to 1, with faster change in the middle of the scene
width = JTransition(0.1, 1, JEaseInOut)
# Function to graphically visualise a timing function
VisualiseTimingFun <- function(fn) plot(seq(0, 1, .01), fn(seq(0, 1, .01)), type = "l")
# Visualise the JEase timing function
VisualiseTimingFun(JEase)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.