Smooth Scribbles

Vanilla.js is fun, it's really similar to gamemaker

Log in to post a comment.

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

// Global code will be evaluated once.
const turtle = new Turtle();
targang = Math.random()*90;
timer = 30
ang = targang
turtle.pendown();

// The walk function will be called until it returns false.
function walk(i) {
    timer -= 1;
    if (timer <= 0) {
        timer = Math.random()*15;
        targang = Math.random()*45;
    }
    turtle.forward(2);
    ang = ((ang-targang)/5)
    turtle.right(ang);
    return i < Math.random()*99999;
}