Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- t = turtle.Pen()
- screen = turtle.Screen()
- screen.setup(1000, 800)
- screen.bgcolor("cyan")
- screen.title("Привет, ребята!")
- for x in range(300, 400, 8):
- t.forward(x / 5)
- t.left(x / 10)
- t.backward(29)
- screen.clear()
- turtle.mainloop()
- import turtle
- t = turtle.Pen()
- screen = turtle.Screen()
- screen.setup(1000, 800)
- screen.bgcolor("black")
- screen.title("Спираль")
- colors = ["red", "green", "orange", "blue"]
- name = turtle.textinput('Введите свое имя', 'Как тебя зовут?')
- for x in range(100):
- t.pencolor(colors[x % 4])
- t.write(name, font=("Arial", (x+4)//4))
- t.up()
- t.forward(x * 4)
- t.down
- t.left(91)
- turtle.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement