locked
A working Turtle! RRS feed

  • General discussion

  • I've created this thread just for sharing every project where Turtle is, just to see the graphics you guys did, and everything related.

    The code:

    sides = 50

    length = 200 / sides
    angle = 360 / sides

    Turtle.Speed = 9

    For i = 1 To sides
        length2 = length / 2
        For j = 1 To sides
            Turtle.Move(length2)
            Turtle.PenUp()
            Turtle.Move(length2)
            Turtle.PenDown()
            Turtle.Move(length2)
            Turtle.PenUp()
            Turtle.Move(length2)
            Turtle.PenDown()
            Turtle.Turn(angle)
        EndFor
        Turtle.Turn(angle)
    EndFor

    and the caption:

    Turtle
    TextWindow.WriteLine("Rafael Valdés")
    Thursday, November 13, 2008 1:54 AM