This is the Algorithm for Custom Fourier Art, along with path tracing GCode Parser
for further information mail to: [email protected]
A few things one needs to do in order to obtian the coordinates of the path of any custom picture.
step 1: Create the minimal outline of the image as an SVG file
step 2: Create gcode corresponding to that image
step 3: store the gcode data in some .txt file and parse that using GcodeParser.py and store it as a 2D Array of X and Y coordinates of the complete path. (It is better to have a continuous path, for convinience and better result).
step 4: use that array as drawing.js
And now you're ready to roll.