Skip to content

Commit

Permalink
Remove random empty image, enclose example in shoebot sphinx thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
stuaxo committed May 2, 2016
1 parent b92a8a8 commit 71822a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 0 additions & 8 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,3 @@ More
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
.. shoebot::
:snapshot:
:source:

def draw():
print 'hello'

7 changes: 5 additions & 2 deletions doc/source/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ The most evident purpose of scripting is to automate repetitive tasks; for
example, one could create an image with 2000 randomly positioned circles with
two lines of code:

for step in range(2000):
ellipse(random(WIDTH), random(HEIGHT), 10, 10)
.. shoebot::
:snapshot:

for step in range(2000):
ellipse(random(WIDTH), random(HEIGHT), 10, 10)

This is something that you'd find a bit more convoluted to create using your
mouse and keyboard to draw on the canvas manually. While the GUI editing
Expand Down

0 comments on commit 71822a3

Please sign in to comment.