Code Sketch


triangle Pattern
By: mary
Category: Art
clear()
setSpeed(superFast)
setBackgroundH(magenta, blue)
setPenColor(yellow)
setFillColor(red)

//triangle Pattern
def triangle = {
    repeat(12) {
        right()
        forward(200)
        left(120)
        forward(200)
        left(120)
        forward(200)

    }

}
triangle

//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)
//
//right()
//forward(200)
//left(120)
//forward(200)
//left(120)
//forward(200)