MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / to_svg

Function to_svg

PythonAPI/examples/microsim.py:47–48  ·  view source on GitHub ↗
(coord)

Source from the content-addressed store, hash-verified

45 dwg.add(dwg.rect(size=('100%', '100%'), fill='white'))
46
47 def to_svg(coord):
48 return [coord.x, coord.y]
49
50 def add_arrowed_line(start, end, **args):
51 direction = (end - start).make_unit_vector()

Callers 4

add_arrowed_lineFunction · 0.85
add_lineFunction · 0.85
add_circleFunction · 0.85
add_triangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected