summaryrefslogtreecommitdiffstats
path: root/AutoVisual/AutoVisual.pde
blob: dc4462f8d22f4f32baee66f315c4890e8c4680b1 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
IGPSquare square;
IGPHexagon hexagon;
IGPPentagon pentagon;
IGPTheGreatMosqueOfCordoba cordoba;
IGPTheGreatMosqueOfKairouan kairouan;
IGPMustansiriyaMadrasa madrasa;
IGPEsrefogluMosque esrefoglu;

float midx;
float midy;
float circleSize = 512;

void setup() {
  size(640, 360);
  frameRate(30);
  noLoop();
  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);
  cordoba = new IGPTheGreatMosqueOfCordoba(midx, midy, circleSize);
  kairouan = new IGPTheGreatMosqueOfKairouan(midx, midy, circleSize);
  madrasa = new IGPMustansiriyaMadrasa(midx, midy, circleSize);
  esrefoglu = new IGPEsrefogluMosque(midx, midy, circleSize);
}

void draw() {
  background(0);
  noFill();

//  pentagon.displayConstructionLines();

//  square.displayConstructionLines();
//  cordoba.display();
//  cordoba.displayConstructionLines();
//  kairouan.display();
//  kairouan.displayConstructionLines();

//  hexagon.displayConstructionLines();
//  madrasa.display();
//  madrasa.displayConstructionLines();
  esrefoglu.display();
  esrefoglu.displayConstructionLines();

}