svg-curves

1.0.0 • Public • Published

SVG Curves

Example

import { createCurve } from 'svg-curves';

const points = [
  { x: 0, y: 400 },
  { x: 100, y: 500 },
  { x: 200, y: 550 },
  { x: 300, y: 400 },
  { x: 400, y: 500 },
  { x: 500, y: 450 },
  { x: 600, y: 450 },
];

const attrs = {
  stroke: 'black',
  strokeWidth: 2
};

const curve = createCurve(points, attrs);

Result

Screenshot

See Example

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i svg-curves

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

37.7 kB

Total Files

8

Last publish

Collaborators

  • philippfromme