Python Tutorial 3: Arrows and Lines (and Poly Lines)
In addition to the circle and rectangle objects that can be used to represent real world objects, there are other objects that can be used for different visualizations.
Visualizing Vectors
# Attach an arrow to a circle
c1 = circle(pos=vec(0,0), radius=5, color="green")
a1 = arrow(pos=c1.pos, size=vec(10,10), color="purple")Lines (and poly_lines) to Represent Other Geometry
Last updated