Code Sketch


Square and Triangle
By: Reinal Rajan Satardekar
clear()
setSpeed(superFast)
setPosition(-200, 100)

forward(100)
right()
forward(100)
right()
forward(100)
right()
forward(100)
right()

setPosition(100, 100)
forward(100)
right(120)
forward(100)
right(120)
forward(100)
right(120)

setPenColor(blue)
setFillColor(green)
setPosition(-200, -200)

forward(100)
right()
forward(100)
right()
forward(100)
right()
forward(100)
right()

setPosition(100, -100)
right()
forward(100)
right(120)
forward(100)
right(120)
forward(100)
right(120)