项目
在 GitHub 查看
javierbyte/pintr
关于
将图片转换为单线插画。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Pintr
Turn your images into plotter-like line drawings, create single line SVG illustrations from your pictures.
All the processing is made locally, your images never leave your computer and you are free to use them as you please.
Also available for iPhone and iPad on the App Store.
The platform-neutral, incremental generator is documented in PINTR core. It is currently a local module, not a published package.
Examples


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


https://user-images.githubusercontent.com/2009676/119021927-4ba5e000-b9a0-11eb-9ad7-1f9e54e823ae.mp4
Animated Example
This is an exported SVG animated using Vivus.
How does it work?
- The image is normalized for brightness and transformed to grayscale. See preparePintrImage. I try to make the lightest zone white, and the darkest black.
- A point in the canvas is selected at random and a line starts looking for different paths to draw next. At each step, the pencil draws imaginary lines to different points of the image and asks itself which one of those points would make the drawing look more like the original image, then it picks that one, draws the line and moves the cursor. The amount of imaginary lines is controlled by the "definition" slider. More lines mean more precise (but less terrifying) images. See createPintr and the scan function.
- Lines are batched to be drawn and get flushed almost every frame.
- Results are exported as svg as a very simple
polyline, see generateSvg. PNG export is taken directly from the canvas.
Pixel data and resizing were made using
canvas-image-utils.
探索相关项目
加载中…