Turtle

Today I learned the Turtle language; here’s some of the code.

This tells the turtle:

“Start by recording the shape I’m going to draw so I can fill it in later.”

Ultimately, you must call the bob.end_fill() function to actually fill in the shape.


bob.color(“blue”, “cyan”)

bob.begin_fill()
bob.forward(100)
bob.left(90)


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *