Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 815 Bytes

README.md

File metadata and controls

46 lines (29 loc) · 815 Bytes

potrace-wasm

Potrace Porting in Web Assembly.

Online Demo

Example

image image

Usage

Add potrace-wasm dependency

npm install potrace-wasm

Call the helper methods

import { loadFromCanvas } from "potrace-wasm";

loadFromCanvas(canvas, config)
    .then(svg => drawSVG(svg))
    .catch(err => console.log(err));

Build from source

Install emsdk

Build the wasm and js

npm run build

License

The GNU General Public License version 2 (GPLv2).