private static void moveBackToCenter ( double length ) { Tortoise . setPenUp ( ) ; Tortoise . turn ( 90 ) ; Tortoise . move ( length / 2 ) ; Tortoise . turn ( 90 ) ; Tortoise . move ( length / 2 ) ; Tortoise . turn ( 180 ) ; Tortoise . setPenDown ( ) ; // }
Create the moveBackToCenter recipe