# drawing.py # ---------- # By Seoyeon___________ # # (Final Version_adding trigram, adding color code) from turtle import * 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(1/2 * width,180) # half circle circle(-1/2 * width,180) # another half circle circle(-1 * width,180) end_fill() width=100 penup() forward(1/2 * width) right(90) forward(1*width) left(90) left(90) circle(-2 * width, 33.69) pendown() tadpole (width, "#CD2E3A") right(90) penup() forward(2* width) pendown() left(90) 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()