EAGLE offers two ways to write code:
Script files contain simple commands which you can also enter into the text field just above the drawing area.
ULPs (UserLanguagePrograms) allow sophisticated stuff like looping over all pins of an IC and change the name of the net connected to it.
I'm pretty sure your task can be done with ULPs, however, they are a bit more complex.
I like to write some code which writes a script. Here is what I would do in your case in PYTHON:
from math import *
f.write("LAYER 1;\n") # want to draw in layer 1
while( (angle +9) <=360):
name="sig_%.3f"%(angle) # signal name like sig_9.163
f.write( "ARC '%s' CW FLAT 0.2 (%f %f) (%f %f) (%f %f) ;\n"%(name, x1, y1, x2, y2, x3, y3) )
It creates a script with filename
MyFirstScript.scr, which can then be opened in the EAGLE Layout editor:
ARC 'sig_0.000' CW FLAT 0.2 (0.000000 1.000000) (0.000000 -1.000000) (0.128276 0.991738) ;
ARC 'sig_9.000' CW FLAT 0.2 (0.156434 0.987688) (-0.156434 -0.987688) (0.281839 0.959462) ;
It switches to layer 1 and then creates lots of arcs. An arc takes three coordinate pairs: Starting point of the arc, a point 180° ahead, and the end point. The line width is 0.2, the end of the drawn lines are flat (instead of rounded), and the arc is drawn clockwise.
Run it on a board, and it gives this:
I have used arcs, but you may also have a look at polygons.