Test von Till

Quick n dirty mandala generator

Log in to post a comment.

// You can find the Turtle API reference here: https://turtletoy.net/syntax
Canvas.setpenopacity(.4);

// Global code will be evaluated once.
const turtle = new Turtle();
turtle.degrees();

let Lines = 2500; // min=100, max=2500, step=1
let StepFactor = 1.05; // min=0.1, max=2, step=0.05
let Symetry = 1; // min=0.1, max=2, step=0.1
let Extrusion = 4; // min=1, max=10, step=0.5


// The walk function will be called until it returns false.
turtle.pendown();
function walk(i) {
    turtle.goto(Math.cos(i*StepFactor/Symetry) * Math.sqrt(i) * Extrusion, Math.sin(i*StepFactor) * Math.sqrt(i) * Extrusion)

    return i < Lines;
}