summaryrefslogtreecommitdiffstats
path: root/AutoVisual/AutoVisual.pde
diff options
context:
space:
mode:
Diffstat (limited to 'AutoVisual/AutoVisual.pde')
-rw-r--r--AutoVisual/AutoVisual.pde27
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();
+}