tAdded octahedron example to readme - polygen - generative drawing of polygonal… | |
git clone git://src.adamsgaard.dk/polygen | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 6df0809853239266b9fceae5713fe6ff616be616 | |
parent dd2cc4f4940e8f0b39ff31dcc03693e80dfa22ba | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 14 Mar 2014 12:54:59 +0100 | |
Added octahedron example to readme | |
Diffstat: | |
M README.rst | 14 +++++++++++++- | |
A octahedron.png | 0 | |
M octahedron.py | 3 ++- | |
3 files changed, 15 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/README.rst b/README.rst | |
t@@ -1,7 +1,19 @@ | |
polygen | |
======= | |
-Create plots with polygons. | |
+Create plots with polygons, e.g. regular star polygons. | |
Licensed under the GNU Public License version 3 or later. See ``LICENSE.txt`` | |
for details. | |
+ | |
+Written by Anders Damsgaard, https://github.com/anders-dc/polygen | |
+ | |
+Examples | |
+-------- | |
+ | |
+``python octahedron.py`` | |
+ | |
+.. image:: octahedron.png | |
+ :scale: 60% | |
+ :alt: Octahedron with filled circle | |
+ :align: center | |
diff --git a/octahedron.png b/octahedron.png | |
Binary files differ. | |
diff --git a/octahedron.py b/octahedron.py | |
t@@ -19,4 +19,5 @@ p.plot_all_to_all(line_width=4, line_color='#666666', | |
p.plot_circle([0,0], 0.34, color='#993333') | |
# Save figure as file | |
-p.save_plot(background_color='#333333', transparent_background=False) | |
+p.save_plot('octahedron', | |
+ background_color='#333333', transparent_background=False) |