#NEWLINE# def circle_diameter_to_path( d , offset = Point ( ) ) : #NEWLINE# #INDENT# "\n    Returns an SVG path of a circle of diameter 'diameter'\n    " #NEWLINE# r = ( d / 2.0 ) #NEWLINE# k = 0.5522847498 #NEWLINE# return ( 'm %s,%s c %s,%s %s,%s %s,%s %s,%s %s,%s %s,%s %s,%s %s,%s %s,%s %s,%s %s,%s %s,%s z' % ( 0 , ( r - offset . y ) , ( k * r ) , 0 , k , ( ( - r ) * ( 1 - k ) ) , r , ( - r ) , 0 , ( ( - r ) * k ) , ( ( - r ) * ( 1 - k ) ) , ( - r ) , ( - r ) , ( - r ) , ( ( - r ) * k ) , 0 , ( - r ) , ( r * ( 1 - k ) ) , ( - r ) , r , 0 , ( r * k ) , ( r * ( 1 - k ) ) , r , r , r ) )