Code Sketch


sangeeta_Activity4 20Oct
By: Sangeeta Salgaonkar
cleari()
showAxes()
setPenColor(blue)
setPenThickness(10)
setFillColor(Color(141, 211, 134))
def triangle(side: Int, size: Int) =
    {
        if (side <= 0) {}
        else {
            repeat(side) {
                forward(size)
                right(120)

            }

        }

    }
right()
setPosition(-100, 0)
triangle(3, 200)

left(60)
triangle(3, 200)