tAdded big octahedron rendering, processed in gimp - polygen - generative drawing of polygonal patterns
HTML git clone git://src.adamsgaard.dk/polygen
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 4b7bdbde885972f2adc3b8b56d7adcddec7008a6
DIR parent 1aed2ac0d44b8bd11a7a7907c84bda8f31b19cdf
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Fri, 14 Mar 2014 14:43:40 +0100
Added big octahedron rendering, processed in gimp
Diffstat:
A octahedron-bg-gimp.png | 0
A octahedron-bg.png | 0
A octahedron-bg.py | 23 +++++++++++++++++++++++
A octahedron-bg.xcf | 0
4 files changed, 23 insertions(+), 0 deletions(-)
---
DIR diff --git a/octahedron-bg-gimp.png b/octahedron-bg-gimp.png
Binary files differ.
DIR diff --git a/octahedron-bg.png b/octahedron-bg.png
Binary files differ.
DIR diff --git a/octahedron-bg.py b/octahedron-bg.py
t@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+import polygen
+import matplotlib.pyplot as plt
+
+# Generate regular polygon with eight corners (octahedron)
+octahedron = polygen.regular_star_polygon(8)
+
+# Create the polygon plotting object
+p = polygen.polyplot(figure_size_inches=(25.50,14.40), dpi=160)
+
+# Pass the octahedron points to the plot object
+p.set_points(octahedron.points)
+
+# Plot octahedron, do not draw lines to opposite points. Use custom colors.
+p.plot_all_to_all(line_width=4, line_color='#666666',
+ exceptions=[[0,4], [1,5], [2,6], [3,7]])
+
+# Place red dot in center
+p.plot_circle([0,0], 0.34, color='#993333')
+
+# Save figure as file
+p.save_plot('octahedron-bg',
+ background_color='#333333', transparent_background=False)
DIR diff --git a/octahedron-bg.xcf b/octahedron-bg.xcf
Binary files differ.