Supplementary Exercises

Exercise - triangle based circular pattern

clear()
setAnimationDelay(100)
setPenColor(darkGray)
setFillColor(orange)
repeat(8) {
    forward(math.sqrt(2 * 100 * 100)) // can be done manually
    right(135)
    forward(100)
    right(90)
    forward(100)
    right(180)
}

Exercise - figure of alphabet 'A'

clear()
left()
forward(20)
right(100)
forward(200)
right(80)
forward(40)
right(80)
forward(200)
right(100)
forward(20)
right(80)
forward(170)
left(80)
forward(10)
left(80)
forward(170)

**Exercise - Indian Flag **

clear()
setAnimationDelay(100)
setPenColor(black)
setFillColor(brown)
left()
forward(400)
right()
forward(50)
right()
forward(400)
right()
forward(50)
right()
forward(400)
right()
forward(50)
right()
forward(50)
left()
forward(50)
right()
forward(300)
right()
forward(50)
right()
forward(300)
right()
forward(50)
right()
forward(50)
left()
forward(50)
right()
forward(200)
right()
forward(50)
right()
forward(200)
right()
forward(50)
right()
forward(95)
setFillColor(black)
left()
forward(400)
right()
forward(10)
right()
forward(400)
back(400)
setFillColor(orange)
left()
forward(250)
right()
forward(40)
right()
forward(250)
setFillColor(white)
left()
forward(40)
left()
forward(250)
left()
forward(40)
back(40)
setFillColor(green)
back(40)
left()
forward(250)
right()
forward(40)
right()
forward(250)
back(125)
setFillColor(Color(0, 0, 102))
repeat(100){
left(3)
forward(1)}

**Exercise - figure Plus **

clear()
forward(100)
right()
forward(100)
right()
forward(100)
left()
forward(100)
right()
forward(100)
right()
forward(100)
left()
forward(100)
right()
forward(100)
right()
forward(100)
left()
forward(100)
right()
forward(100)
right()
forward(100)

Exercise - 5 squares

clear()
forward(100)
right()
forward(100)
right()
forward(100)
right()
forward(100)
right()
forward(200)
right()
forward(100)
right()
forward(100)
right()
forward(200)
left()
forward(100)
left()
forward(300)
left()
forward(100)
left()
forward(100)
left()
forward(200)
right()
forward(100)
right()
forward(100)
right()

Exercise - Swastik

clear()
setPenThickness(20)
left()
forward(200)
left()
forward(400)
right()
forward(200)
right(180)
forward(200)
left()
forward(200)
left()
forward(200)
right()
forward(200)
right(180)
forward(200)
left()
forward(400)
right()
forward(200)
right(180)
forward(100)
left()
hop(100)
setPenThickness(5)
setFillColor(red)
repeat(60){
    left(6)
    forward(2)
}
hop(200)
repeat(60){
    left(6)
    forward(2)
}
right()
hop(200)
repeat(60){
    left(6)
    forward(2)
}
right(95)
hop(200)
repeat(60){
    left(6)
    forward(2)
}

Exercise - Swastika

clear()
setPenThickness(20)
left()
forward(200)
left()
forward(400)
right()
forward(200)
right(180)
forward(200)
left()
forward(200)
left()
forward(200)
right()
forward(200)
right(180)
forward(200)
left()
forward(400)
right()
forward(200)
right(180)
forward(100)
left()
hop(100)
setPenThickness(5)
setFillColor(red)
repeat(60){
    left(6)
    forward(2)
}
hop(200)
repeat(60){
    left(6)
    forward(2)
}
right()
hop(200)
repeat(60){
    left(6)
    forward(2)
}
right(95)
hop(200)
repeat(60){
    left(6)
    forward(2)
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License