Skip to content

Commit

Permalink
Add poly example
Browse files Browse the repository at this point in the history
  • Loading branch information
matsjoyce committed Feb 8, 2017
1 parent a014824 commit 723ede0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,17 @@ Yup, just like rectangles. Do draw a cyan border of thickness 10 do::

image.draw_hollow_circle(position=image.center, radius=20, color="cyan", thickness=10)

Triangles?
----------

Use the `draw_polygon` function::

image.draw_polygon(points=[(50, 0), (100, 70), (0, 70)], color="tomato")

Outlines work too::

image.draw_hollow_polygon(points=[(50, 0), (100, 70), (0, 70)], color="blue", thickness=10)

Any other shapes?
-----------------

Expand Down

0 comments on commit 723ede0

Please sign in to comment.