@mdjb4/

SweetFamousFunnel

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
import turtle
raf = turtle.Turtle()
def drawsq (grow,newCol):
  raf.color (newCol)
  for x in range (4):
    raf.forward (growSides)
    raf.left (90)

window = turtle.Screen()
window.bgcolor ("lightblue")

raf=turtle.Turtle()
raf.pensize (7)

growSides=growSides+5

for myMove in range(20) :
  if myMove>5:
    drawsq(growSides,"hotpink")

for myMove in range (30):
  if my Move > 10:
   drawsq(growSides, "black")

    
result
console