Skip to content
/ pintr Public
forked from javierbyte/pintr

Create single line SVG illustrations from your pictures

License

Notifications You must be signed in to change notification settings

uecarlos/pintr

 
 

Repository files navigation

Create single line SVG illustrations from your pictures.

pintr

Examples

Plotter Art

Thanks @sableRaph for helping me create those. Using an AxiDraw.

axidraw-pintr.mp4

Animated Example

This is an exported SVG animated using Vivus.

pintr

How does it work?

  1. The image is normalized for brightness and transformed to grayscale. See canvasDataToGrayscale.
  2. A point in the canvas is selected and a line starts looking for different paths to draw next. See scan functions
  3. Lines are batched to be drawn and get flushed almost every frame.
  4. Results are exported as svg as a very simple polyline, see generateSvg.

Pixel data and resizing were made using canvas-image-utils, better face definition using face-api.

About

Create single line SVG illustrations from your pictures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.7%
  • HTML 24.7%
  • CSS 15.6%