Top-rated recipes tagged "drawing"http://code.activestate.com/recipes/tags/drawing/top/2016-01-27T22:22:01-08:00ActiveState Code RecipesSimple drawing tool with Python turtle graphics (Python)
2016-01-27T22:22:01-08:00Vasudev Ramhttp://code.activestate.com/recipes/users/4173351/http://code.activestate.com/recipes/580544-simple-drawing-tool-with-python-turtle-graphics/
<p style="color: grey">
Python
recipe 580544
by <a href="/recipes/users/4173351/">Vasudev Ram</a>
(<a href="/recipes/tags/drawing/">drawing</a>, <a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/python2/">python2</a>, <a href="/recipes/tags/tkinter/">tkinter</a>, <a href="/recipes/tags/turtle/">turtle</a>).
</p>
<p>A simple drawing program that lets you use your keyboard to draw figures on screen, using the turtle graphics module built into Python.</p>
Draw a diamond with asterisks using recursion (Python)
2014-11-07T17:51:32-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578959-draw-a-diamond-with-asterisks-using-recursion/
<p style="color: grey">
Python
recipe 578959
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/drawing/">drawing</a>).
</p>
<p>Given the following function header:</p>
<pre class="prettyprint"><code>def triangles(n):
</code></pre>
<p>If n for example is 5, then the drawing would be like this:</p>
<pre class="prettyprint"><code> *
* * *
* * * * *
* * *
*
</code></pre>