Skip to content

Instantly share code, notes, and snippets.

View danielt3's full-sized avatar

Daniel Rosa Franzini danielt3

View GitHub Profile
@danielt3
danielt3 / hpgl2gcode.cpp
Created February 12, 2021 13:58 — forked from lhartmann/hpgl2gcode.cpp
Simple HPGL parser with GCODE output
// (c) 2020 Lucas V. Hartmann, github.com/lhartmann
// MIT license.
// Use:
// hpgl2gcode --scale=1 --up=1 --down=0 < in.hpgl > out.gcode
// --scale=1 Sets how many HPGL units for 1 GCODE unit.
// --up=1 Sets Z for pen-up.
// --down=0 Sets Z for pen down.
// Values shown are defaults.
//