diff --git a/__pycache__/trigram.cpython-312.pyc b/__pycache__/trigram.cpython-312.pyc new file mode 100644 index 0000000..a140d7f Binary files /dev/null and b/__pycache__/trigram.cpython-312.pyc differ diff --git a/drawing old.py b/drawing old.py new file mode 100644 index 0000000..769bd78 --- /dev/null +++ b/drawing old.py @@ -0,0 +1,28 @@ +# 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() + + diff --git a/drawing.py b/drawing.py index 769bd78..ca43f0e 100644 --- a/drawing.py +++ b/drawing.py @@ -2,27 +2,62 @@ # ---------- # By Seoyeon___________ # -# (second trial_use fuction_center of Korean flag with two colors) +# (Final Version_adding trigram, adding color code) from turtle import * -def tadpole (radius,colour): # "I name half of yinyang shape tadpole" +from trigram import draw_trigram +def tadpole (width,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) + circle(1/2 * width,180) # half circle + circle(-1/2 * width,180) # another half circle + circle(-1 * width,180) end_fill() -right(15) +width=100 +penup() +forward(1/2 * width) +right(90) +forward(1*width) left(90) -tadpole (40, "red") +left(90) +circle(-2 * width, 33.69) +pendown() + +tadpole (width, "#CD2E3A") right(90) penup() -forward(160) +forward(2* width) pendown() left(90) -tadpole (40, "blue") +tadpole (width, "#0047A0") +left(90) +penup() +forward(1/2 * width) +pendown() + +draw_trigram ([True, True, True], width) + + +right(180) +penup() +forward( (6+12+12+6) / 12 * width) +draw_trigram ([False, False, False], width) + +left(90) +penup() +circle(18 /12 * width, 33.69*2) +right(90) +draw_trigram ([False, True, False], width) + +right(180) +penup() +forward( (6+12+12+6) / 12 * width) +draw_trigram ([True, False, True], width) input() + + + diff --git a/drawing_old.py b/drawing_old.py new file mode 100644 index 0000000..769bd78 --- /dev/null +++ b/drawing_old.py @@ -0,0 +1,28 @@ +# 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() + + diff --git a/test_trigram.py b/test_trigram.py index a9be059..a8d2a25 100644 --- a/test_trigram.py +++ b/test_trigram.py @@ -8,5 +8,5 @@ from trigram import ( ) left(90) -draw_trigram(리, 200) +draw_trigram([True,False,False], 200) input()