@MatthewWellingt/

spiral thing

Python (with Turtle)

No description

fork
loading
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
from turtle import *

from random import randint # from the random module import the function randint
#like turtle it is a module, read ahead for use

speed(0)

color('black')

x = 1

while x < 400:

    r = randint(0,255) 
    g = randint(0,255) 
    b = randint(0,255) 

    color(255) 


    pencolor(r,g,b) 

    fd(50 + x)
    rt(90.911)


    x = x+1 

exitonclick() 
result
console