diff options
author | David Runge <dave@sleepmap.de> | 2015-12-30 03:43:22 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-12-30 03:43:22 +0100 |
commit | 33a44587ecf9c6b2287b460743207f856f811067 (patch) | |
tree | ab7626f0a0ea6cf01aefb5cff02bd57b3ccb7f91 /AutoVisual/AutoVisual.pde | |
download | processing-sketchbook-33a44587ecf9c6b2287b460743207f856f811067.tar.gz processing-sketchbook-33a44587ecf9c6b2287b460743207f856f811067.tar.bz2 processing-sketchbook-33a44587ecf9c6b2287b460743207f856f811067.tar.xz processing-sketchbook-33a44587ecf9c6b2287b460743207f856f811067.zip |
AutoVisual: First commit of AutoVisual, a sketch based upon Islamic Geometric Patterns by Eric Broug. Partially functioning implementations of square, pentagon and hexagon base patterns.
Diffstat (limited to 'AutoVisual/AutoVisual.pde')
-rw-r--r-- | AutoVisual/AutoVisual.pde | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/AutoVisual/AutoVisual.pde b/AutoVisual/AutoVisual.pde new file mode 100644 index 0000000..9db7ba9 --- /dev/null +++ b/AutoVisual/AutoVisual.pde @@ -0,0 +1,27 @@ +IGPSquare square; +IGPHexagon hexagon; +IGPPentagon pentagon; +float midx; +float midy; +float circleSize = 256; + +void setup() { + size(640, 360); + midx = width/2; + midy = height/2; + square = new IGPSquare(midx, midy, circleSize, 12); +// square = new IGPSquare(midx, midy, circleSize, 16); + hexagon = new IGPHexagon(midx, midy, circleSize); + pentagon = new IGPPentagon(midx, midy, circleSize); +} + +void draw() { + background(0); + noFill(); + square.displayConstructionLines(); + square.display(); + hexagon.displayConstructionLines(); + hexagon.display(); + pentagon.displayConstructionLines(); + pentagon.display(); +} |