ivtools comdraw is derived from ivtools drawtool. It has extensions for command interpreting of drawing capability, using a simple yet fully programmable scripting language Here is the man page for ivtools comdraw. The set of pre-defined operators and commands of comterp are available in comdraw as well.
To use comdraw like a Spirograph, start one up, and enter something like the following into stdin:
for(i=0 i<100 i++
:body x=300+cos(i)*100;y=300+sin(i)*100;ellipse(x,y,30,20);rotate(i);update
)
which generates this:
ivtools drawing editors | idraw | drawtool | comdraw | flipbook | graphdraw |