From 07fa32f8a5b1f1c67e7eaca0f14a6fade0b24360 Mon Sep 17 00:00:00 2001 From: Seoyeon Lee Date: Wed, 2 Oct 2024 23:33:16 -0400 Subject: [PATCH] I made multiple different trials. Major change is adding trigrams and changing codes a bit for the circles. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I realized that I was using two different references for the flag. Both are correct; one I used for my second version, it shows ratios for the measurment, using something like 1, (1/2), (1/4). The one Dr. Proctor shared with me was using bigger numbers for the measurement such as 12, 24, and 6. When I realized that the taeguk pattern is much bigger than it should be when I draw 건(gun), I realize that my code needs to be revised to make my circles smaller. I had to think of the usage of 'wdith' and 'unit' in the code. It took a while for me to figure things out. I did not want to change the fuction Dr. Proctor created, so I make adjustment of my previous work. I think of how this work would related to math learning or appying math skills. I used arc tangent to figure the angle I need to make for a turtle. I use the center of the big circle as one of a vertex of a right triangle and use the measurement of right trangle (with base 36 and height 24). That's how I got 33.69 degrees, and this was important information for me to move my turtle to the starting point of Dr. Proctor's Trigram fuction. A strategy I used consistently is that making lots of sketchy work on the piece of paper. I think of a couple different ways to do math using Taegukgi for elementary or middle schooler. So far just ideas, but I am hoping I can make actual lesson plans and use as an example for an culturally relevant lessons in math class. We can start with korean Flag, but I am sure there are many different flags we can try as well. I have not been able to make any motions in this drawing project. I wonder if I can make the flag to be waved or try to make the flag looking like fluttering in the wind, but I am pretty sure it requires much more advanced skills. I am sure I probably have many typos and mistakes here, but somehow this black screen for code makes me care less about me making typoes and errors. haha, I don't know why, but typing here feels very different from typing on word or google doc. This activity makes me feel much more comfortable to do 'try and see' without having a clear plan. I did many small changes and see how little changes I made worked or not worked. --- __pycache__/trigram.cpython-312.pyc | Bin 0 -> 2433 bytes drawing old.py | 28 +++++++++++++++ drawing.py | 53 +++++++++++++++++++++++----- drawing_old.py | 28 +++++++++++++++ test_trigram.py | 2 +- 5 files changed, 101 insertions(+), 10 deletions(-) create mode 100644 __pycache__/trigram.cpython-312.pyc create mode 100644 drawing old.py create mode 100644 drawing_old.py diff --git a/__pycache__/trigram.cpython-312.pyc b/__pycache__/trigram.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a140d7f5832ce96902e2872963ae797317e2034a GIT binary patch literal 2433 zcmb7`(Q6|`7{F(;*n2=9mb+SM{nt_qbC0G)zF4v`QFmFZYC91#UF>1Pc!7+<-`j8GS3r~G+GH$y? z-E=LTx)u)0p6zno_QkP0bvb3aR}iyhk8{umGob@bg~<(IESyWMsTOvGGb{ z;pfToEv=(X-JaThc~>(!+Hh;3J->1FR%%}*XJ!uLMAceK>-t7w{n`N>CMQEW1H?oj z?W1YMc6#s)fcY4Bb;2%igkH3I3~+}T^ojuVB)BD5gOup&cP|fUQ2$dy%!&`<|G&>C z9y^~neuL+1_+#l6lC9b1Vn<1YR5h>tlo;!1GqP_$P#^I!_1@}KSLdEU5|=~d0#%q`6W|RS2eD)%0yXbB9t)D_L^vE;rbXM$;R8Spz@kB- z;IXR7EQYuQ8hkm#vLOq;f_RA{nSoL=ox&h!lV}UYv+(m5K{UvrM%1C!bIqlWl4=!q zm9rgXw0W&_>P*}G6v|jf8*8h;g*MWbCJ(f{$qSK<7dw)j+pNh|`4M!qCMi^%Us+G{JGRdML+>;+gtcl=8r_GL+u pI%M+K_*6p<;^$GELowZuA1cGr_`~TjDfMu6L>fDoQKV6!@gFG2I~D){ literal 0 HcmV?d00001 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()