Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MykBamberg/linedraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linedraw

LingDong-/linedraw algorithm implemented in D

Usage

    ./linedraw [OPTION]... INPUT OUTPUT

Arguments:
-c  --contour Contour detail, 0 to disable
-s    --hatch Hatch scale, 0 to disable
-n    --noise Noise scale, 0 to disable
-w    --width Stroke width
-o --optimize Optimize Route
-h     --help This help information.

Build

LDC / DMD and DUB are required.

$ dub build --compiler=ldc2 -f -b release-nobounds

Examples

$ ./linedraw -o -s 20 -c 20 -n 4 test_images/mandelbrot.bmp test_images/mandelbrot.svg

Source

mandelbrot

Traced

mandelbrot
$ ./linedraw -c 5 -n 4 -w 2 -s 14 -o test_images/antennas.png test_images/antennas.svg

Source

antennas

Traced

antennas