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
from turtle import *
import random
colors = ('blue', 'gold', 'brown', 'green', 'orange')

# Pattern




speed(0)
color(random.choice(colors))
penup()
setposition(0,0)
pendown()
left(45)
shape('turtle')
left(20)

length = 5
for i in range(10):
  while length < 1000:
    color(random.choice(colors))
    forward(length)
    left(90 + random.choice(range(50,180)))
    length += 10
    left(20)
result
console