-
Notifications
You must be signed in to change notification settings - Fork 0
/
params.json
1 lines (1 loc) · 1.12 KB
/
params.json
1
{"name":"Amp","tagline":"Stylish canvas animation","body":"## Basic usage\r\n\r\n```javascript\r\n\t// Create a new instance of Amp with the DOM element for your canvas.\r\n\tvar Amp = new Amp(document.getElementById('amp-canvas-id'));\r\n\r\n\tAmp.addLine({\r\n\t\t// The origin point for the line\r\n\t\torigin: {\r\n\t\t\tx: 0,\r\n\t\t\ty: 0\r\n\t\t},\r\n\t\t// The length in pixels of the line.\r\n\t\tlength: 100,\r\n\t\t// The angle (in radians) the line should be drawn at.\r\n\t\tangle: Math.PI / 2,\r\n\t\t// The easing function to use. \r\n\t\t// Currently the only easing function provided is exponential out.\r\n\t\teasing: Amp.ease.expOut,\r\n\t\t// The delay (in seconds) before beginning animation.\r\n\t\tdelay: 1,\r\n\t\t// The length of time (in seconds) drawing should take.\r\n\t\tduration: 1,\r\n\t\t// The width of the line in px.\r\n\t\twidth: 5,\r\n\t\t// Style can be anything context.strokeStyle is compatible with\r\n\t\tstyle: \"#0000ff\"\r\n\t});\r\n\r\n\t// Begin the animations.\r\n\tAmp.draw();\r\n```\r\n","google":"UA-58404423-2","note":"Don't delete this file! It's used internally to help with page regeneration."}