Code Sketch


Square Part 2
By: Raul


cleari()

//setPenColor(blue)

//setBackground(white)

//scaleCostume(0.001)


setFillColor(green)

//showGrid()
showAxes()
left()
hop(0)

def square(side: Int){
    forward(side)
    right(90)
    forward(side)
    right(90)
    forward(side)
    right(90)
    forward(side)
    right(90)
    } //> def square(side: Int): Unit

    

square(100)
right(10)
square(100)
right(10)
square(100)
right(10)
square(100)
right(10)
square(100)
right(10)
square(100)
right(10)
square(100)
right(10)
square(100)
right(10)
square(100)
right(10)
square(100)
right(10)