Advertisement
Guest User

Untitled

a guest
Jun 30th, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.24 KB | None | 0 0
  1. # Рисуем Among Us
  2. import turtle
  3.  
  4. bodyColor = '#0033FF'
  5. glassColor = '#91A2E6'
  6. t = turtle.Turtle()
  7.  
  8. def body():
  9.     t.pensize(30)
  10.     t.fillcolor(bodyColor)
  11.     t.begin_fill()
  12.     # Сторона слева
  13.     t.right(90)
  14.     t.forward(50)
  15.     t.right(180)
  16.     t.circle(40, -180)
  17.     t.right(180)
  18.     t.forward(200)
  19.     # Голова
  20.     t.right(180)
  21.     t.circle(100, -180)
  22.     # Сторона справа
  23.     t.backward(20)
  24.     t.left(15)
  25.     t.circle(500, -20)
  26.     t.backward(20)
  27.     t.circle(40, -180)
  28.     t.left(7)
  29.     t.backward(50)
  30.     t.up()
  31.     t.left(90)
  32.     t.forward(10)
  33.     t.right(90)
  34.     t.down()
  35.     t.right(240)
  36.     t.circle(50, -70)
  37.     t.end_fill()
  38.    
  39. def glass():
  40.     t.up()
  41.     t.right(230)
  42.     t.forward(100)
  43.     t.left(90)
  44.     t.forward(20)
  45.     t.right(90)
  46.     t.down()
  47.     t.fillcolor(glassColor)
  48.     t.begin_fill()
  49.     t.right(150)
  50.     t.circle(90, -55)
  51.     t.right(180)
  52.     t.forward(1)
  53.     t.right(180)
  54.     t.circle(10, -65)
  55.     t.right(180)
  56.     t.forward(110)
  57.     t.right(180)
  58.     t.circle(50, -190)
  59.     t.right(170)
  60.     t.forward(80)
  61.     t.right(180)
  62.     t.circle(45, -30)
  63.     t.end_fill()
  64.  
  65. def backpack():
  66.     pass
  67.  
  68. body()
  69. glass()
  70. backpack()
  71.  
  72. turtle.done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement