@Aloeb83/

DamagedHilariousAnalysts

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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import turtle
steve = turtle.Turtle()

#List of Colors
colors = ['red', 'blue', 'yellow', 'green', 'purple', 'pink', 'gray', 'black', 'orange', 'gold', 'lime', 'cyan', 'maroon', 'hot pink', 'turquoise', 'violet']

#This is a square
def draw_square(turtle, color):
  turtle.color(color)
  turtle.begin_fill()
  for number in range(4):
    turtle.forward(90)
    turtle.left(90)
  turtle.end_fill()  
  turtle.forward(90)
  colors.remove(colors[0])

steve.speed(0)
steve.penup()
steve.goto(-180, -180)
steve.pendown()

for number in range(4):
  draw_square(steve, colors[0])

#Turns first corner
steve.left(90)
steve.forward(90)

for number in range(3):
  draw_square(steve, colors[0])

#Turns second corner
steve.left(90)
steve.forward(90)

for number in range(3):
  draw_square(steve, colors[0])

#Turns 3rd Corner
steve.left(90)
steve.forward(90)

for number in range(2):
  draw_square(steve, colors[0])

#4th Turn (1st turn inward)
steve.left(90)
steve.forward(90)

for number in range(2):
  draw_square(steve, colors[0])

#5th Turn
steve.left(90)
steve.forward(90)

draw_square(steve, colors[0])

#Final Turn
steve.left(90)
steve.forward(90)

draw_square(steve, colors[0])

steve.hideturtle()
result
console