smooth-path

1.0.1 • Public • Published

smooth-path

stable

Smothes a flat number array path using Chaikins Algorithm

Usage smoothPath(path)

NPM

 
var smoothPath = require('smooth-path');
 
var path = [ 0, 0, 20, 20, 15, 15, 60, 50 ]; var result = smoothPath(path);
 
// result: [ 5, 5, 15, 15, 18.75, 18.75, 16.25, 16.25 ] 
 

License

MIT, see LICENSE

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.18latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.18
1.0.00
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i smooth-path

Weekly Downloads

8

Version

1.0.1

License

MIT

Last publish

Collaborators

  • stbaer