Fork: sketch1

sketch1

Log in to post a comment.

// Forked from "sketch1" by Trixelized
// https://turtletoy.net/turtle/5ca6a3ed86

Canvas.setpenopacity(1);
const t=new Turtle();
function n(v) {return Math.sin(v) * (v / 150);}
//for (i=0; i<8; i++) {t.circle(-i * 5);}

for (i=0; i<900; i++) {
    var s = n(i + 0.5 * Math.sin(n(i * 0.5)));
    t.penup();
    t.goto(Math.sin(s) * 20, Math.cos(s) * 60);
    t.pendown();
    t.goto(Math.sin(s) * 90, Math.cos(s) * 90);
    
// t.pendown();t.circle(0.5);t.goto(Math.sin(s) * 70, Math.cos(s) * 70);
// t.circle(0.5);t.penup();t.goto(Math.sin(s) * 60, Math.cos(s) * 60);
}