setWrapAround
index
 
Name setWrapAround ()
Description Puts the Turtle into "wrap-around" mode. In wrap-around mode, if Turtle "falls off" one edge of the screen, it will reappear on the opposite edge.
Syntax setWrapAround(wrapAround);
Parameters
wrapAround determines wrap-around mode. wrap-around enabled when true. (boolean)
Returns None
Example

    import Turtle.*;
    size(500,500);
    background(255);
    stroke(0);

    Turtle t = new Turtle(this);
    t.setWrapAround(true);
   
    t.right(45);
    t.forward(500);
    t.drawTurtle();