Skip to content
Scott-Cooper edited this page Sep 4, 2016 · 1 revision

Welcome to the Drawbot_image_to_gcode wiki!

This software converts a JPEG to GCode line segments for use on a drawbot, polargraph, or vplotter.

It is written in https://processing.org so its simple to change and tweak. The basic algorithm is as follows:

  1. Find the darkest pixel in the entire image
  2. Lift up the pen
  3. Move there
  4. Lower the pen
  5. Lighten the pixel a bit so it not the darkest anymore
  6. Find the darkest pixel a couple pixels away from here
  7. Draw a line to it
  8. Lighten the pixel a bit so it not the darkest anymore
  9. Repeat steps 6-8 about 1000 times
  10. Repeat steps 1-9 about 200 times
  11. Lift up the pen, and done

You can find more at http://www.dullbits.com/drawbot/drawbot

Clone this wiki locally