the codes are here https://scratch.mit.edu/discuss/60/topic/add/ the way g-codes work (in this project) is 1/10/u/-10/-1/# will print x 1-10, go up one and print x -10--1 and the finish(try it). you can also use SetColour/<insert colour here>/<insert saturation here>/<insert brightness here>/ to set the colour, saturation and brightness
feel free to use as a renderer if you give credit(not that good yet) smiley face (test object) -20/20/u/-20/20/u/-30/30/u/-30/30/u/-40/40/u/-40/40/u/-48/-8/8/48/u/-48/-8/8/48/u/-56/-17/17/57/u/-56/-17/17/57/u/-64/-28/28/64/u/-64/-28/28/64/u/-70/-40/40/70/u/-70/-40/40/70/u/-72/-50/-23/-20/20/23/50/72/u/-72/-50/-23/-20/20/23/50/72/u/-74/-55/-23/-20/20/23/55/74/u/-74/-55/-23/-20/20/23/55/74/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/-23/-20/20/23/u/#/