Top-rated recipes tagged "4d"http://code.activestate.com/recipes/tags/4d/top/2011-05-26T10:57:39-07:00ActiveState Code Recipes2D slice of 4D Mandelbrot Fractal and Map it in 3D (Python) 2011-05-26T10:57:39-07:00Derek Harrisonhttp://code.activestate.com/recipes/users/4178123/http://code.activestate.com/recipes/577723-2d-slice-of-4d-mandelbrot-fractal-and-map-it-in-3d/ <p style="color: grey"> Python recipe 577723 by <a href="/recipes/users/4178123/">Derek Harrison</a> (<a href="/recipes/tags/2d/">2d</a>, <a href="/recipes/tags/3d/">3d</a>, <a href="/recipes/tags/4d/">4d</a>, <a href="/recipes/tags/symion/">symion</a>). </p> <p>This is a modification of code posted at <a href="http://code.activestate.com/recipes/577715/" rel="nofollow">http://code.activestate.com/recipes/577715/</a> (r3)</p> <p>The original code produces a png image using the PIL module. It generates a Random 2D Slice of a 4D Mandelbrot Fractal.</p> <p>This extends the program into 3D with Visual Python 5.4, running under Python 2.7.1</p> <p>Changing vp_flag from 0 to 1 will restore program to original functionality. The program is interactive with keys q,w,e,r and x used to control visual points object.</p>