summaryrefslogtreecommitdiffstats
path: root/AutoVisual/AutoVisual.pde
blob: 9db7ba99364a2f1d6de1cd8802b778aed67846ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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();
}