DemoImage
DemoImage is a helper class for simply visualizing easing functions. It contains 4 static methods for visualizing different functions of Easing objects.
Negative values are not rendered in the generated images
in(easing: Easing, outPath: string, steps: number = 200)
Creates a graph showing the curve created by the Easing
object's in function and saves the image to the specified output path.
out(easing: Easing, outPath: string, steps: number = 200)
Creates a graph showing the curve created by the Easing
object's out function and saves the image to the specified output path.
inOut(easing: Easing, outPath: string, steps: number = 200)
Creates a graph showing the curve created by the Easing
object's inOut function and saves the image to the specified output path.
interpolate(inEasing: Easing, outEasing: Easing, outPath: string, smoothing: number = 0.25, steps: number = 200)
Creates a graph showing the curve created by an in Easing
object and an out Easing
object. The transition between them is smoothed according to the smoothing value.
Last updated