Friday, January 27, 2023

Соёмбо зурах

 from turtle import *

bgcolor('blue')

color('yellow')

right(90)


pos = [(-110,0), (60,0)]

for x,y in pos:

    up()

    goto(x,y)

    down()

   

    for i in range(2):

       forward(240)

       left(90)

       forward(50)

       left(90)

  


pos1 = [(-50,-210),(-50,0)]

pos2 = [(50,-210),(0,-240),(-50,-210)]

pos3 = [(50,0),(0,-30),(-50,0)]

for x,y in pos1:

    up()

    goto(x,y)

    down()

    

    if y == -210:

        posz = pos2

        for k,j in posz:

            goto(k,j)

    else:

        posz = pos3

        for k,j in posz:

            goto(k,j)

    


pos4 = ((-50,-40),(-50,-180))

for x,y in pos4:

    up()

    goto(x,y)

    down()

    

    for i in range(2):

       forward(20)

       left(90)

       forward(100)

       left(90)

   

# ᠵᠢᠭᠠᠰᠤ ᠨᠤᠭᠤᠳ

up()

goto(0,-117)

left(90)

down()

circle(23,180)

circle(50,150)


up()

goto(0,-117)

right(155)

down()

circle(29,140)


up()

goto(0,-123)

setheading(180)

down()

circle(23,180)

circle(50,165)


up()

goto(0,-123)

right(163)

down()

circle(29,145)


# ᠵᠢᠭᠠᠰᠤᠨ ᠤ ᠬᠢᠳᠤ ᠨᠤᠭᠤᠳ

up()

goto(0,-103)

setheading(0)

down()

circle(10)

up()

goto(0,-155)

down()

circle(10)

# ᠰᠠᠷᠠᠨ ᠵᠢᠷᠣᠬᠤ

up()

goto(-55,65)

setheading(-90)

down()

circle(55,180)

up()

goto(-55,65)

left(204)

down()

circle(60,131)

#ᠨᠠᠷᠠᠨ ᠵᠢᠷᠤᠬᠤ

up()

goto(0,40)

setheading(0)

down()

circle(40)

# ᠭᠠᠯ ᠵᠢᠷᠤᠬᠤ / ᠰᠠᠭᠤᠷᠢ ᢉᠡᠰᠡᠭ

up()

goto(-25,155)

setheading(-90)

down()

circle(25,180)

circle(15,45)


up()

goto(-22,164)

left(110)

down()

circle(15,45)

up()

goto(-22,164)

left(130)

down()

circle(15,45) #


up()

goto(5,160)

setheading(-90)

down()

circle(5,225)


up()

goto(-13,164)

left(90)

down()

circle(5,225)

circle(50,10) ##


up()

goto(6,173)

left(150)

down()

circle(50,15)

up()

goto(-13,164)

setheading(45)

down()

circle(6,90)


up()

goto(13,170)

setheading(-135)

down()

circle(4,110)

# ᠳᠦᠯᠦ ᠶᠢᠨ ᠵᠡᠭᠦᠨ ᠦᠵᠦᢉᠦᠷ

up()

goto(-11,184)

setheading(-145)

down()

circle(20,40)

up()

goto(-11,184)

setheading(-125)

down()

circle(15,55)


# ᠳᠦᠯᠦ ᠶᠢᠨ ᠪᠠᠷᠠᠭᠤᠨ ᠦᠵᠦᢉᠦᠷ

up()

goto(11,184)

setheading(-40)

down()

circle(-25,55)

up()

goto(11,184)

setheading(-50)

down()

circle(-15,60)


# ᠳᠦᠯᠦ ᠶᠢᠨ ᠦᠵᠦᢉᠦᠷ ᠦᠵᠦᢉᠦᠷ

up()

goto(4,210)

setheading(-135)

down()

circle(30,60)

circle(-20,45)

up()

goto(4,210)

setheading(-120)

down()

circle(30,60)

circle(-20,60)


exitonclick()



No comments:

Post a Comment