generated from mwc/project_drawing
51 lines
671 B
Python
51 lines
671 B
Python
# drawing.py
|
|
# ----------
|
|
# By ____(you)___________
|
|
#
|
|
# (Briefly describe what this program does.)
|
|
|
|
from turtle import *
|
|
from math import sqrt
|
|
|
|
|
|
|
|
|
|
def fly (distance):
|
|
penup()
|
|
forward(distance)
|
|
pendown()
|
|
|
|
def quarter_arc_right(radius):
|
|
"Draws a quarter of an arc, turning to the right."
|
|
circle(-radius, 90)
|
|
|
|
def quarter_arc_left(radius):
|
|
"Draws a quarter of an arc, turning to the left."
|
|
circle(radius, 90)
|
|
|
|
|
|
left(90)
|
|
fly(150)
|
|
right(90)
|
|
left(90)
|
|
quarter_arc_left(100)
|
|
quarter_arc_left(100)
|
|
left(90.)
|
|
fly(200)
|
|
left(90)
|
|
quarter_arc_right(100)
|
|
quarter_arc_right(100)
|
|
right(24.6)
|
|
forward(480)
|
|
right(90+40.7)
|
|
forward(480)
|
|
fly(100)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
input() |