repl.it
@ThinOldGoose/

snowflake

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
from turtle import *
pensize(5)
pencolor('skyblue')
for r in range(6):
  print(360/120)
  forward(100)
  right(45)
  forward(50)
  backward(50)
  left(90)
  forward(50)
  backward(50)
  right(45)
  backward(100)
  right(60)


#Different snowflake

# for r in range(6):
#   pensize(5)
#   pencolor('skyblue')
#   forward(100)
#   right(45)
#   forward(50)
#   backward(25)
#   left(90)
#   forward(50)
#   backward(50)
#   right(90)
#   forward(50)
#   backward(25)
#   left(90)
#   forward(50)
#   backward(50)
#   right(45)
#   backward(100)
#   right(60)
result
console