Home

Awesome

Drawbot_image_to_gcode_v2

<img src="pics/github1.png" height="411" alt="Drawbot_image_to_gcode_v2 example output"/>

This code is used to generate gcode for drawbots, polargraphs or other vertical drawing machines.
It takes an original image, manipulates it and generates a drawing path that kinda sorta looks like the original image.
This code was specifically written to work with multiple Copic markers.
The code was intended to be heavily modified to generate different and unique drawing styles.

If your clipboard contains a URL to an image, the code will download it. This makes finding usable images easy and straight forword. If your clipboard contains a URL to a web site, the code will crash and burn in a spectacular fashion.

Key Bindings:

KeyDescription
pLoad next "Path Finding Module" (PFM)
rRotate drawing
[Zoom in
]Zoom out
\Reset drawing zoom, offset and rotation
ODisplay original image (capital letter)
oDisplay image to be drawn after pre-processing (lower case letter)
lDisplay image after the path finding module has manipulated it
dDisplay drawing with all pens
<ctrl> 1Display drawing, pen 0 only
<ctrl> 2Display drawing, pen 1 only
<ctrl> 3Display drawing, pen 2 only
<ctrl> 4Display drawing, pen 3 only
<ctrl> 5Display drawing, pen 4 only
<ctrl> 6Display drawing, pen 5 only
<ctrl> 7Display drawing, pen 6 only
<ctrl> 8Display drawing, pen 7 only
<ctrl> 9Display drawing, pen 8 only
<ctrl> 0Display drawing, pen 9 only
SStop path finding prematurely
EscExit running program
<Decrease the total number of lines drawn
>Increase the total number of lines drawn
gGenerate all gcode, SVGs, and PDFs with lines as displayed
GToggle grid
tRedistribute percentage of lines drawn by each pen evenly
yRedistribute 100% of lines drawn to pen 0 ( Black/White/Sharpie )
9Change distribution of lines drawn (lighten)
0Change distribution of lines drawn (darken)
1Increase percentage of lines drawn by pen 0
2Increase percentage of lines drawn by pen 1
3Increase percentage of lines drawn by pen 2
4Increase percentage of lines drawn by pen 3
5Increase percentage of lines drawn by pen 4
6Increase percentage of lines drawn by pen 5
7Increase percentage of lines drawn by pen 6
8Increase percentage of lines drawn by pen 7
9Increase percentage of lines drawn by pen 8
0Increase percentage of lines drawn by pen 9
shift 0Decrease percentage of lines drawn by pen 0
shift 1Decrease percentage of lines drawn by pen 1
shift 2Decrease percentage of lines drawn by pen 2
shift 3Decrease percentage of lines drawn by pen 3
shift 4Decrease percentage of lines drawn by pen 4
shift 5Decrease percentage of lines drawn by pen 5
shift 6Decrease percentage of lines drawn by pen 6
shift 7Decrease percentage of lines drawn by pen 7
shift 8Decrease percentage of lines drawn by pen 8
shift 9Decrease percentage of lines drawn by pen 9
shift 0Decrease percentage of lines drawn by pen 0
{Change Copic marker sets, increment
}Change Copic marker sets, decrement

Examples of drawings made with this software: http://dullbits.com/drawbot/gallery