This module will create a canvas element which can be used to visualize easing equations. Example output:
var canvas = require('ease-preview)(easefunc, [opts])
Pass in an an ease function you'd like to preview the ease function should accept a value between 0-1 and return a value between 0-1 (the same format as the
ease-preview also accepts a second options object with the following options:
canvascanvas you'd like to render the ease equation into. If no canvas is supplied a new canvas will be created.
widthwidth of the canvas element if no canvas element is passed. Default value
heightheight of the canvas element if no canvas element is passed. Default value
styleBackgroundthe fill style of the background. Default value
styleEasethe stroke style of the ease line. Default value
styleBoundarythe stroke style of the lines that indicate 0 and 1 on graphic. Default value
widthEasethe stroke width of the ease line. Default value
widthBoundarythe stroke width of the boundary lines. Default value
shouldRenderBoundarywhether boundary lines should be rendered. Default value
boundarySizehow many pixels should be allocated to render beyond 0 and 1. Default value
MIT, see LICENSE.md for details.