generated from mwc/project_drawing
29 lines
572 B
Python
29 lines
572 B
Python
# drawing.py
|
|
# ----------
|
|
# By Seoyeon___________
|
|
#
|
|
# (second trial_use fuction_center of Korean flag with two colors)
|
|
|
|
from turtle import *
|
|
def tadpole (radius,colour): # "I name half of yinyang shape tadpole"
|
|
color("black", colour) # British spellings for colour to distinguish this from color"
|
|
begin_fill()
|
|
circle(radius,180) # half circle
|
|
circle(-radius,180) # another half circle
|
|
circle(-radius*2,180)
|
|
end_fill()
|
|
|
|
right(15)
|
|
left(90)
|
|
tadpole (40, "red")
|
|
right(90)
|
|
penup()
|
|
forward(160)
|
|
pendown()
|
|
left(90)
|
|
tadpole (40, "blue")
|
|
|
|
input()
|
|
|
|
|