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()



Соёмбоны гал зурах

 from turtle import *

coor = [(25,155),(25,158),(24,160),(23,162),(22,164),(21,165),(20,167),(19,169),(18,171),(18,173),(18,175),(17,178),(16,180),(15,181),(14,182),(13,183),(10,185),(12,183),(12,181),(13,179),(13,177),(13,175),(12,172),(11,171),(11,169),(11,167),(12,166),(13,164),(14,163),(15,161),(15,160),(14,158),(13,157),(12,156),(10,156),(9,156),(7,156),(6,158),(5,159),(5,161),(5,162),(5,165),(6,167),(6,169),(8,174),(9,176),(9,178),(9,181),(8,184),(7,187),(5,189),(3,193),(2,194),(1,197),(0,199),(0,202),(1,204),(2,207),(2,208),(4,210),(2,209),(1,208),(-1,207),(-2,204),(-3,202),(-3,200),(-3,198),(-3,195),(-2,193),(-2,190),(-2,188),(-3,186),(-4,184),(-5,182),(-6,180),(-7,178),(-8,175),(-8,173),(-7,170),(-6,169),(-6,166),(-5,164),(-5,160),(-6,157),(-7,156),(-8,156),(-10,156),(-12,156),(-13,156),(-14,157),(-15,159),(-15,161),(-14,163),(-13,165),(-12,166),(-11,167),(-10,169),(-11,171),(-12,175),(-13,177),(-13,180),(-12,182),(-10,185),(-13,184),(-14,182),(-15,181),(-17,179),(-17,177),(-18,174),(-18,171),(-19,168),(-20,166),(-21,164),(-23,162),(-24,160),(-25,158),(-25,155),(-25,152),(-25,150),(-24,147),(-23,145),(-22,143),(-21,141),(-19,139),(-17,137),(-15,135),(-12,134),(-10,132),(-7,132),(-4,131),(0,130),(4,131),(9,132),(12,133),(14,134),(17,137),(19,139),(21,142),(22,144),(23,147),(24,150),(25,155)]

up()

goto(24,155)

hideturtle()

down()

for x,y in coor:

    goto(x,y)


exitonclick()