Babylonian Visceral Labyrinth

Babylonian Visceral Labyrinth
blogmymaze.wordpress…al-labyrinth-part-3/

Log in to post a comment.

// You can find the Turtle API reference here: https://turtletoy.net/syntax
// https://blogmymaze.wordpress.com/2016/03/27/the-babylonian-visceral-labyrinth-part-3/
// https://blogmymaze.wordpress.com/2015/08/23/how-to-make-a-walkable-babylonian-visceral-labyrinth/

// Released under the MIT licence 
// https://mit-license.org/
// you can use this for commercial gain if you like eg you can sell artworks with this image.

Canvas.setpenopacity(1);

const x = 225; // //min=0 max=360 step=45
const scale = 11; 

// Global code will be evaluated once.
const turtle = new Turtle();
turtle.penup();
turtle.goto(0,0);

turtle.setheading(-45);
turtle.forward(scale * 8);
turtle.setheading(45);
turtle.circle(scale * 8, extent = 180); 
turtle.pendown();
turtle.circle(scale * 8, extent = -180); // outer lower arc
turtle.circle(scale * 7, extent = -180); // 
turtle.circle(scale * 6, extent = -180); // 
turtle.circle(scale * 2, extent = -180); //
turtle.setheading(45);
turtle.circle(scale * 2, extent =180); // 
turtle.setheading(45);
turtle.circle(scale * 1, extent = -180); //
turtle.circle(scale * 4, extent = -180); //
turtle.penup();
turtle.setheading(135)
turtle.forward(scale * 7);
turtle.setheading(225)
turtle.pendown();
turtle.circle(scale * 3, extent = -180); // 
turtle.setheading(225);
turtle.circle(scale * 1, extent = 180); // 
turtle.setheading(45)
turtle.circle(scale * 5, extent = 180); //
turtle.circle(scale * 6, extent = 180); //
turtle.circle(scale * 7, extent = 180); //
turtle.penup();
turtle.setheading(-45);
turtle.forward(scale * 2);
turtle.pendown();
turtle.setheading(225);
turtle.circle(scale * 2, extent =180); // 
turtle.setheading(225);
turtle.circle(scale * 1, extent = -180); // 

turtle.penup();
turtle.setheading(135);
turtle.forward(scale * 1);
turtle.pendown();
turtle.setheading(225);
turtle.circle(scale * 3, extent = 180); // 

turtle.penup();  // back down  the diagonal line 6 units
turtle.setheading(135);
turtle.forward(scale * 6);
turtle.pendown();
turtle.setheading(225);
turtle.circle(scale * 1, extent = 180); // 

turtle.penup();  // back down  the diagonal line 7 units
turtle.setheading(135);
turtle.forward(scale * 3);
turtle.pendown();
turtle.setheading(x);
turtle.circle(scale * 4, extent = 180); //