Skip to content
Create SVG curves
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example
lib
.eslintignore
.eslintrc
.gitignore
.npmignore
README.md
package-lock.json
package.json
rollup.config.js

README.md

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

You can’t perform that action at this time.