Pranay144 / pintr

Create single line SVG illustrations from your pictures

Home Page:http://javier.xyz/pintr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://javier.xyz/pintr

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 59.7%Language:HTML 24.7%Language:CSS 15.6%