Skip to content

stbaer/smooth-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Smothes a flat number array path using Chaikins Algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published