So, Hello everyone. I am working on a project and need a little help. I have a base code for a machine that can move a pneumatic piston to a coordinate on a 2d plane. It also has functions to be able to select a color (based off a var) and select that color by moving the piston up and down over a pallet and then goes to the coordinates provided in the variable. The machine is coded in C and basically it needs to convert lets say a .jpeg image into this format when it converts i want it to be basically a notepad document with this inside: blue[32,3],red[25,56],yellow[4,7],blue[7,9],red[2,3],yellow[25,56]
And so then the machine would run at x32 and z3 to put down the color blue, clean the brush and then continue on to the next. Also it can create the different colors like purple and such on the side then once it knows it is created the purple, orange, and green functions can be used in the program. That i can code in. If anyone can help that would be great thank you! :)