3 ms·
Very neat. Attractors + <canvas> are a lot of fun... My favorite is the Peter de Jong attractor, described here: http://paulbourke.net/fractals/peterdejong/ ht
by jashkenas 14y ago
Very neat. Attractors + <canvas> are a lot of fun...
My favorite is the Peter de Jong attractor, described here: http://paulbourke.net/fractals/peterdejong/ http://paulbourke.net/fractals/peterdejong/
Here's a <canvas> version. Click and drag and release to re-seed the starting coordinates: http://jashkenas.s3.amazonaws.com/misc/deJong/deJong.html http://jashkenas.s3.amazonaws.com/misc/deJong/deJong.html
Here's the annotated source code: http://jashkenas.s3.amazonaws.com/misc/deJong/docs/deJong.html http://jashkenas.s3.amazonaws.com/misc/deJong/docs/deJong.ht...
Edit: I've added a permalink button, so that you can link directly to interesting coordinates that you discover: http://jashkenas.s3.amazonaws.com/misc/deJong/deJong.html#599,182 http://jashkenas.s3.amazonaws.com/misc/deJong/deJong.html#59...
- dbaupp 14y agoIn the comments on the gist there is a canvas version too: http://fiddle.jshell.net/aemkei/d99PL/show/ http://fiddle.jshell.net/aemkei/d99PL/show/
- tholman 14y agohttp://jashkenas.s3.amazonaws.com/misc/deJong/deJong.html#-283,666 http://jashkenas.s3.amazonaws.com/misc/deJong/deJong.html#-2...
- beneater 14y agoHere's a quick port to Khan Academy's new CS scratchpads: http://www.khanacademy.org/cs/lorenz-attractor/966238447 http://www.khanacademy.org/cs/lorenz-attractor/966238447