The animated version was created on Dwitter: dwitter.net/d/20457
Log in to post a comment.
// Forked from "The Rössler Attractor" by rodrigosiqueira
// https://turtletoy.net/turtle/c82f5e2af3
// Forked from "The Aizawa Attractor " by rodrigosiqueira
// https://turtletoy.net/turtle/946579f115
// Forked from "Lorenz XZ" by evilotto
// https://turtletoy.net/turtle/30f29b215b
// 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();
turtle.penup();
function project() {
turtle.goto(110*x/z, 120*y/z);
// turtle.goto(x * 3, y * 3);
// turtle.goto(y * 3, (-z + 28) * 3);
}
turtle.pendown();
// The walk function will be called until it returns false.
function walk(i) {
x = (Math.sin(V=i/3.14160015))*Math.sin(U=V*6e3)*4;
y = (Math.cos(V/U))*Math.sin(V*2)*2; // try cos*cos
z = Math.cos(U)-5;
project();
return i < 3000
}