to build this on linux use g++ -o runtest main.cpp test.cpp shape.cpp
This is a CPS module for generating shapes and then post script using c++.
Using macros to generate shapes, call makeCircle(radius); After shape is generated you can use helper function printPostScript to print the post script to a ostream of your choice.
Stacked Shapes Layered Shapes Horizonal Shapes One Custom Shape that is a face.
This module was created for a school project, There is a test suite to ensure the CPS is generating the right sized squares. There is not a way to ensure post script is legal. If you would like to add a new custom shape then open a PR.