Less than 1KB (genuary day 14)
These are 6 outputs from a 701-byte (minified with terser) JavaScript function, which generates GCode commands to control the pen plotter. I manually adjust the number of lines given as a parameter, so that the GCode it prints also stays below 1024 bytes. I used mostly continuous lines to reduce the number of pen lift commands, and integer coordinates and relative positioning to reduce the number of digits printed.
Plus I made a little gcode-to-paper.js and SVG interpreter for previewing the output while I was writing the code.
6 outputs, each 100x100mm, black fountain pen on white cartridge paper.
#penplotter #penplotterart #gcode #javascript #genuary #genuary14 #genuary2024
5 months ago