Skip to content

nturley/potrace-wasm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

Potrace Porting in Web Assembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.7%
  • C 25.1%
  • Other 1.2%