# Pynguin 自由畫 05-洪士弦 ![](https://i.imgur.com/uqaiA0e.png) ## 作業一 ```python #1 reset() def h(q, w, e): for a in range(q): fd(w) lt(e) def p(f, g): for b in range(f): fd(g) rt(1) def e(q, x): for b in range(q): fd(x) lt(1) def c(w, d, f): for i in range(2): fd(w) lt(d) fd(f) lt(d) goto(-300, 300) h(4, 600, 90) goto(-300, -100) color('#0db0ee') fill('#0db0ee') c(600, 90, 200) nofill() goto(-300, 100) color("#bdf0f5") fill('#d8fdfd') c(600, 90, 200) nofill() goto(-300, 300) color('#16f00e') fill('#16f00e') c(600, 90, 200) nofill() goto(200, -250) color('#eeef1a') fill('#eeef1a') p(360, 1) nofill() goto(-100, 300) color('#d8fdfd') fill('#595959') c(200, 90, 50) goto(-50, 250) c(100, 90, 50) nofill() goto(0, 200) lt(90) color('#ffffff') fd(200) lt(90) fill('#f51606') c(120, 90, 80) nofill() goto(-200, -200) rt(90) color('#0db0ee') fill('#fdfdfd') p(120, 0.8) p(60, 0.5) rt(180) p(180, 0.5) rt(180) p(60, 0.5) p(120, 0.5) rt(200) p(250, 0.215) fd(207.5) nofill() ``` <iframe width="560" height="315" src="https://www.youtube.com/embed/uKg56dagOmU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> ## 作業二 ![](https://i.imgur.com/gKHSYiC.png) ```python= reset() def a (a, b, c): for i in range(a): fd(b) rt(c) def b(a, b, c): for i in range(2): fd(a) lt(b) fd(c) lt(b) fill('white') b(100, 90, 200) nofill() fill('#5991d7') b(100, 90, 150) nofill() goto(0, -60) fill('#91e4ee') b(100, 90, 30) nofill() goto(-200, 0) fill('#cb7706') b(60, 90, 300) nofill() fill('#e8bf87') a(3, 60, 120) nofill() goto(-180, 32) fill('#282725') a(3, 20, 120) nofill() ``` <iframe width="560" height="315" src="https://www.youtube.com/embed/8o3z5MufAFk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>