Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
10
increased by233.33%
Maintainers
1
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc