repl.it
@Bookie0/

colors

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from random import randint
import turtle
pen = turtle.Pen()
window = turtle.Screen()
window.colormode(255)





def rand_color():
    pen.color(randint(0, 255), randint(0, 255), randint(0, 255))



rand_color()
pen.forward(100)
pen.left(90)
rand_color()
pen.forward(100)
pen.left(90)
rand_color()
pen.forward(100)
pen.left(90)
rand_color()
pen.forward(100)


window.exitonclick()
?