My original Aizawa Attractor was created on Dwitter: dwitter.net/d/20214
Log in to post a comment.
// 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(x * 122, z * 160 + y* 20); // turtle.goto(x * 3, y * 3); // turtle.goto(y * 3, (-z + 28) * 3); } x = 0.04; y = 0.04; z = 0.04; nx=z ny=y nz=z project(); turtle.pendown(); dt = 1; f = 0.04; // The walk function will be called until it returns false. function walk(i) { //X+=(Z-Y)/8, // Y+=X+Z*Y/5, // Z+=(f-X*X+f*Z*X)/9 x = x + dt * ((z-y)/8); y = y + dt * (x + z*y/5); z = z + dt * (f - x*x + f*z*x)/9; // x = nx // y = ny // z = nz project(); return i < 4000 }