The goAdobeIllustrator package uses Graphico's feedback mechanism to write out a depth sorted set of vector based lines and triangles into an Adobe Illustrator file. General steps involved to do so include:
An example of a some code could be the following:
// Save the current render mode. go.push(Go.RENDER_MODE); // Set the render mode to Go.FEEDBACK go.renderMode(Go.FEEDBACK); // Render something. go.render(myData); // Restore the render mode. go.pop(Go.RENDER_MODE); // Create the Adobe Illustrator file. GoAdobeIllustrator file = new GoAdobeIllustrator(go, "myArt.ai", GoAdobeIllustrator.VERSION_8); // Write out the content of Graphico's feedback buffer. file.writeFeedback(); // Flush and close the file. file.close(); // Remember to clear the feedback buffer. go.clear(Go.FEEDBACK);
Java and C++ files -> goAdobeIllustrator.src.jar