Example #1
0
    t.fd(circle.radius)
    t.lt(90)
    t.pd()
    polygon.circle(t, circle.radius)

if __name__ == "__main__":
    t = turtle.Turtle()

    #draw the axe:
    length = 400
    t.fd(length)
    t.bk(length)
    t.lt(90)
    t.fd(length)

    #draw rectangle
    rect = Rectangle()
    rect.width = 100
    rect.height = 200
    rect.corner = Point()
    rect.corner.x = 30.0
    rect.corner.y = 100.0

    #draw circle
    circle = Circle()
    circle.radius = 200
    circle.corner = Point()
    circle.corner.x = 0.0
    circle.corner.y = 0.0
    #draw_rect(t, rect)
    draw_circle(t, circle)