python - How to draw a Spiral & Arc Shape Curves using pygame? -


i trying draw spiral & arc shapes using pygame. data want draw of opendrive maps. has 2 types of curves.

arc has same starting , ending curvatures, however, spiral has different start , ending curvatures. see sample map data here: http://www.opendrive.org/tools/culdesac.xodr. (map image)

pygame allows 1 function draw curves requires boundary rectangle , start/end angles draw arcs. see http://www.pygame.org/docs/ref/draw.html#pygame.draw.arc.

i want know how draw both type of curves(arc & spiral) using pygame.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -