Turtle Graphics Animations
So simple, so beautiful
Some simple, but nice turtle graphics animations.
To restart animations, refresh the page.
The turtle here is a simple JavaScript version of python turtle module (see turtle.js).
for (let i = 0; i < 1000; i++) {
t.forward(i);
t.right(70);
}
for (let i = 0; i < 1000; i++) {
t.circle(i);
t.right(60);
}
for (let i = 0; i < 1000; i++) {
t.forward(i/10);
t.right(10);
}
n = Math.random()*16 - 8;
console.log("rnd n", n);
for (let i = 0; i < 360; i++) {
t.forward(i);
t.left(360/n+1);
}
t.goto(-200, -200)
for (let i = 0; i < 10000; i++) {
t.circle(i/20);
t.right(1);
}
t.goto(200, 200)
for (let i = 0; i < 10000; i++) {
t.circle(i/5);
t.right(10);
}