123456789101112131415161718192021222324252627282930313233343536 |
- # Auto Zeichnung mit Turtte
- import turtle
- import math
- R = 40
- turtle.up()
- turtle.goto(-200,-50)
- turtle.down()
- turtle.forward(70) #1
- turtle.right(90)
- turtle.circle(R,-180) #2
- turtle.right(90)
- dp = 120*math.sqrt(2)-30
- turtle.forward(dp) #3
- turtle.right(90)
- turtle.circle(R,-180) #4
- turtle.right(90)
- turtle.forward(100) #5
- turtle.left(135)
- turtle.forward(120+90*math.sqrt(2)) #6
- turtle.circle(120,135) #7
- turtle.right(90)
- turtle.circle(90,90) #8
- turtle.up()
- turtle.goto(-128,-50)
- turtle.down()
- turtle.circle(38)
- turtle.up()
- turtle.goto(-200+150+dp+2,-50)
- turtle.down()
- turtle.circle(38)
|