Popular recipes tagged "2d"http://code.activestate.com/recipes/tags/2d/2017-07-17T05:53:45-07:00ActiveState Code RecipesShoelace Formula for polygonal area (Python)
2017-07-17T05:53:45-07:00Paddy McCarthyhttp://code.activestate.com/recipes/users/398009/http://code.activestate.com/recipes/580812-shoelace-formula-for-polygonal-area/
<p style="color: grey">
Python
recipe 580812
by <a href="/recipes/users/398009/">Paddy McCarthy</a>
(<a href="/recipes/tags/2d/">2d</a>, <a href="/recipes/tags/area/">area</a>).
</p>
<p>Copied, by author from "Paddy3118 Go deh!: Python investigation of the Shoelace Formula for polygonal area <a href="http://paddy3118.blogspot.com/2017/07/python-investigation-of-shoelace.html#ixzz4n43Dqhaa" rel="nofollow">http://paddy3118.blogspot.com/2017/07/python-investigation-of-shoelace.html#ixzz4n43Dqhaa</a> " Where there is more meat on the bone (under a different license though).</p>
chroma (Python)
2016-05-30T11:48:10-07:00aaahttp://code.activestate.com/recipes/users/4194184/http://code.activestate.com/recipes/580671-chroma/
<p style="color: grey">
Python
recipe 580671
by <a href="/recipes/users/4194184/">aaa</a>
(<a href="/recipes/tags/2d/">2d</a>, <a href="/recipes/tags/game/">game</a>).
</p>
<p>Python personnal game code</p>
2D polygon area (Python)
2012-10-01T16:22:13-07:00Jamie Bullhttp://code.activestate.com/recipes/users/4183059/http://code.activestate.com/recipes/578275-2d-polygon-area/
<p style="color: grey">
Python
recipe 578275
by <a href="/recipes/users/4183059/">Jamie Bull</a>
(<a href="/recipes/tags/2d/">2d</a>, <a href="/recipes/tags/area/">area</a>, <a href="/recipes/tags/geometry/">geometry</a>, <a href="/recipes/tags/polygon/">polygon</a>).
</p>
<p>Function for finding the area of a polygon in a 2D co-ordinate system.</p>
2D 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>