🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

bezierpoints

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bezierpoints

Generate PIXI.js bezier curves that touch a list of points

2.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

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)

  • {PIXI.Graphics} g
  • {number[]|object[]} points [x1, y1, x2, y2, ...] or [{x, y}, {x, y}, ...]

license

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

Keywords

bezier

FAQs

Package last updated on 28 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts