pxt-calliope/docs/examples/turtle-square.md
2017-12-10 19:12:08 -08:00

273 B

Turtle Square

A turtle that traces a square pattern.

turtle.setPosition(0, 0)
turtle.turnRight()
turtle.setSpeed(29)
basic.forever(() => {
    turtle.forward(4)
    turtle.turnRight()
})
microturtle=github:Microsoft/pxt-microturtle#master