Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import*
- speed(0)
- #размер,цвет,х,у
- def star(a,d,x,y):
- goto(x,y)
- color(d)
- begin_fill()
- for i in range(5):
- forward(a)
- left(144)
- end_fill()
- color("white")
- color("dark blue")
- goto(-200,200)
- begin_fill()
- goto(200,200)
- goto(200,-200)
- goto(-200,-200)
- goto(-200,200)
- end_fill()
- # Рисуем звёздочку. Для этого указываем размер, цвет, координаты x, y
- star(20, "red", 100, 100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement