2.0.0 • Published 7 years ago

bezierpoints v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

bezierpoints

PIXI graphics function to generate a smooth line through specific points

Live Example and Sample code

https://davidfig.github.io/bezierpoints/

example

const bezierpoints = require('bezierpoints')

const renderer = PIXI.autoDetectRenderer(800, 600)
document.body.appendChild(renderer.view)

const g = new PIXI.Graphics()
g.lineStyle(10, 0xff0000)

bezierpoints(g, [53, 100, 90, 150, 180, 32, 250, 23])

renderer.render(g)

Installation

npm i bezierpoints

API

function bezierPoints(g, points)

license

MIT License
(c) 2017 YOPEY YOPEY LLC by David Figatner

2.0.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago