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
Post a Comment