Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
stuaxo committed May 2, 2016
1 parent fd8aea3 commit bfb9e50
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions doc/sphinxcontrib-shoebot/README
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ will render an image of a rounded rectangle.
The directive 'snapshot' specifies that it will generate a single image.


Options
-------

Size - change the size of the rendered bot.

.. shoebot::
:snapshot:
:size: 400, 400

# On a 400x400 canvas draw some rectangles
def draw():
nofill()
strokewidth(20)
stroke(0.75, 0., 0)
for i in xrange(380, 0, -40):
rect(200-i, 200-i, i*2, i*2)

Used to change the canvas size without including 'size' in the
script itself.

Requirements
------------

Expand Down

0 comments on commit bfb9e50

Please sign in to comment.