You can code direct to svg, it’s a super intuitive format, every closed
shape is just a many-sided polygon, etc, open up a figure in a text editor.
In all honesty I only had to do that once in an act of desperation
https://www.youtube.com/watch?v=iB80-nIZp3A; I get frequently frustrated
with inkscape when wanting to do a quick job, but I feel sometimes it’s
more of a geometry playground than a simple drawing tool. If I get in the
sets-intersections-unions frame of mind things become smoother.