News for hackers. Stuff that matters.
Re:Lorenz Attractor in 101 bytes of JS by jashkenas on Tuesday August 14, 2012 @10:26AM (#4381052)
Very neat. Attractors + <canvas> are a lot of fun...

My favorite is the Peter de Jong attractor, described here: 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

Here's the annotated source code: 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#59...

Re:Lorenz Attractor in 101 bytes of JS by dbaupp on Tuesday August 14, 2012 @10:28AM (#4381064)
In the comments on the gist there is a canvas version too: http://fiddle.jshell.net/aemkei/d99PL/show/
Re:Lorenz Attractor in 101 bytes of JS by tholman on Tuesday August 14, 2012 @12:26PM (#4381717)
Re:Lorenz Attractor in 101 bytes of JS by beneater on Tuesday August 14, 2012 @02:54PM (#4382499)
Here's a quick port to Khan Academy's new CS scratchpads: http://www.khanacademy.org/cs/lorenz-attractor/966238447