Code Sketch


Fencing design
By: Kanchan Samant
def shape() {
    setFillColor(red)
    repeat(2) {
        forward(100)
        right(45)
        forward(100)
        right(135)
    }
}

def shape2() {
    setFillColor(blue)
    repeat(2) {
        forward(100)
        left(45)
        forward(100)
        left(135)
    }
}

clear()
setSpeed(fast)
setPenColor(black)
originBottomLeft()
//setAnimationDelay(20)

repeat(6) {
    repeat(5) {
        shape()
        hop(100)
    }
    hop(-100 * 5)
    right()
    hop(142)
    left()
    repeat(5) {
        shape2()
        hop(100)
    }
    hop(-100 * 5)
}