diff --git a/drawing.py b/drawing.py index c880ed2..769bd78 100644 --- a/drawing.py +++ b/drawing.py @@ -2,26 +2,27 @@ # ---------- # By Seoyeon___________ # -# (center of Korean flag with two colors, red and blue) +# (second trial_use fuction_center of Korean flag with two colors) from turtle import * -r=40 -left(70) -color("black", "red") -begin_fill() -circle(r,180) # half circle -circle(-r,180) # another half circle -circle(-r*2,180) -end_fill() +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() -color("black", "blue") -begin_fill() -circle(-r*2,180) -right(180) -circle(r,180) # half circle -circle(-r,180) # another half circle +right(15) +left(90) +tadpole (40, "red") +right(90) +penup() +forward(160) +pendown() +left(90) +tadpole (40, "blue") -end_fill() input()