Code Sketch


sangeeta_Activity3 20Oct
By: Sangeeta Salgaonkar
cleari()
showAxes()
setPenColor(blue)
setPenThickness(10)

def square(side: Int, size: Int) =
    {
        if (side <= 0) {}
        else {
            repeat(side) {
                right()
                forward(size)

            }

        }

    }

right(45)
setFillColor(Color(255, 7, 19))
square(4, 100)

right(180)
square(4, 100)