Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is a situation where using polar coordinates can be quite helpful. Hope the code below helps.

def sec_to_rad( n ):
    theta = 2*n*pi/60
    return (sin(theta),cos(theta))

sum([line([(0,0),sec_to_rad(i)],axes=False)+text("{}".format(i),sec_to_rad(i)) for i in range(60)]).show(aspect_ratio=1)

To see above in action see here.