summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-12-30 20:00:40 +0100
committerDavid Runge <dave@sleepmap.de>2015-12-30 20:00:40 +0100
commite7512f5837d5cb26af1196a345c36fb169d5c025 (patch)
treef6ea036307ff0748141cc9635e09e78a755fc278
parent4d0d0ecfe42cd1cfe7c7a1b73e54250b073f1542 (diff)
downloadprocessing-sketchbook-e7512f5837d5cb26af1196a345c36fb169d5c025.tar.gz
processing-sketchbook-e7512f5837d5cb26af1196a345c36fb169d5c025.tar.bz2
processing-sketchbook-e7512f5837d5cb26af1196a345c36fb169d5c025.tar.xz
processing-sketchbook-e7512f5837d5cb26af1196a345c36fb169d5c025.zip
AutoVisual/IGPHexagon.pde: Retabbing document.
-rw-r--r--AutoVisual/IGPHexagon.pde98
1 files changed, 49 insertions, 49 deletions
diff --git a/AutoVisual/IGPHexagon.pde b/AutoVisual/IGPHexagon.pde
index b59c282..d3f41f0 100644
--- a/AutoVisual/IGPHexagon.pde
+++ b/AutoVisual/IGPHexagon.pde
@@ -7,91 +7,91 @@ class IGPHexagon extends IGPFamily{
setVectorsOnConstructionCircles();
}
- void setConstructionCircleCenters(){
- constructionCircleCenters = new ArrayList <PVector> (4);
+ void setConstructionCircleCenters(){
+ constructionCircleCenters = new ArrayList <PVector> (4);
constructionCircleCenters.add(alphaCircleVectors.get(0));
constructionCircleCenters.add(alphaCircleVectors.get(2));
constructionCircleCenters.add(alphaCircleVectors.get(4));
constructionCircleCenters.add(alphaCircleVectors.get(6));
constructionCircleCenters.add(alphaCircleVectors.get(8));
constructionCircleCenters.add(alphaCircleVectors.get(10));
- }
+ }
void setVectorsOnConstructionCircles(){
- int amount = 12;
- constructionPartsTwelve = new ArrayList <PVector>(12);
+ int amount = 12;
+ constructionPartsTwelve = new ArrayList <PVector>(12);
// 0°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(0), 0));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(0), 0));
// 30°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(1), 0));
- // 60°
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(1), 0));
+ // 60°
constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(1), 60));
// 90°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(1), 120));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(1), 120));
// 120°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(2), 120));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(2), 120));
// 150°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(3), 120));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(3), 120));
// 180°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(3), 180));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(3), 180));
// 210°
constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(4), 180));
// 240°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(4), 240));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(4), 240));
// 270°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(4), 300));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(4), 300));
// 300°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(5), 300));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(5), 300));
// 330°
- constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(5), 0));
+ constructionPartsTwelve.add(getVectorOnCircle(constructionCircleCenters.get(5), 0));
}
- void createDividingConstructionLines(int amount){
- stroke(0.66, 0.66, 0.66, 0.4);
- createLine(constructionPartsTwelve.get(0), constructionPartsTwelve.get(6));
- createLine(constructionPartsTwelve.get(1), constructionPartsTwelve.get(7));
- createLine(constructionPartsTwelve.get(2), constructionPartsTwelve.get(8));
- createLine(constructionPartsTwelve.get(3), constructionPartsTwelve.get(9));
- createLine(constructionPartsTwelve.get(4), constructionPartsTwelve.get(10));
- createLine(constructionPartsTwelve.get(5), constructionPartsTwelve.get(11));
+ void createDividingConstructionLines(int amount){
+ stroke(0.66, 0.66, 0.66, 0.4);
+ createLine(constructionPartsTwelve.get(0), constructionPartsTwelve.get(6));
+ createLine(constructionPartsTwelve.get(1), constructionPartsTwelve.get(7));
+ createLine(constructionPartsTwelve.get(2), constructionPartsTwelve.get(8));
+ createLine(constructionPartsTwelve.get(3), constructionPartsTwelve.get(9));
+ createLine(constructionPartsTwelve.get(4), constructionPartsTwelve.get(10));
+ createLine(constructionPartsTwelve.get(5), constructionPartsTwelve.get(11));
}
- void createDividingLines(int amount){
- stroke(0.0, 0.66, 0.0, 0.4);
- createLine(alphaCircleVectors.get(0), alphaCircleVectors.get(6));
- createLine(alphaCircleVectors.get(1), alphaCircleVectors.get(7));
- createLine(alphaCircleVectors.get(2), alphaCircleVectors.get(8));
- createLine(alphaCircleVectors.get(3), alphaCircleVectors.get(9));
- createLine(alphaCircleVectors.get(4), alphaCircleVectors.get(10));
- createLine(alphaCircleVectors.get(5), alphaCircleVectors.get(11));
+ void createDividingLines(int amount){
+ stroke(0.0, 0.66, 0.0, 0.4);
+ createLine(alphaCircleVectors.get(0), alphaCircleVectors.get(6));
+ createLine(alphaCircleVectors.get(1), alphaCircleVectors.get(7));
+ createLine(alphaCircleVectors.get(2), alphaCircleVectors.get(8));
+ createLine(alphaCircleVectors.get(3), alphaCircleVectors.get(9));
+ createLine(alphaCircleVectors.get(4), alphaCircleVectors.get(10));
+ createLine(alphaCircleVectors.get(5), alphaCircleVectors.get(11));
}
void createInnerHexagon(){
- stroke(0.0, 0.0, 0.66, 0.4);
- beginShape(LINES);
- vertex(alphaCircleVectors.get(1).x, alphaCircleVectors.get(1).y);
- vertex(alphaCircleVectors.get(3).x, alphaCircleVectors.get(3).y);
- vertex(alphaCircleVectors.get(3).x, alphaCircleVectors.get(3).y);
- vertex(alphaCircleVectors.get(5).x, alphaCircleVectors.get(5).y);
- vertex(alphaCircleVectors.get(5).x, alphaCircleVectors.get(5).y);
- vertex(alphaCircleVectors.get(7).x, alphaCircleVectors.get(7).y);
- vertex(alphaCircleVectors.get(7).x, alphaCircleVectors.get(7).y);
- vertex(alphaCircleVectors.get(9).x, alphaCircleVectors.get(9).y);
- vertex(alphaCircleVectors.get(9).x, alphaCircleVectors.get(9).y);
- vertex(alphaCircleVectors.get(11).x, alphaCircleVectors.get(11).y);
- vertex(alphaCircleVectors.get(11).x, alphaCircleVectors.get(11).y);
- vertex(alphaCircleVectors.get(1).x, alphaCircleVectors.get(1).y);
- endShape();
+ stroke(0.0, 0.0, 0.66, 0.4);
+ beginShape(LINES);
+ vertex(alphaCircleVectors.get(1).x, alphaCircleVectors.get(1).y);
+ vertex(alphaCircleVectors.get(3).x, alphaCircleVectors.get(3).y);
+ vertex(alphaCircleVectors.get(3).x, alphaCircleVectors.get(3).y);
+ vertex(alphaCircleVectors.get(5).x, alphaCircleVectors.get(5).y);
+ vertex(alphaCircleVectors.get(5).x, alphaCircleVectors.get(5).y);
+ vertex(alphaCircleVectors.get(7).x, alphaCircleVectors.get(7).y);
+ vertex(alphaCircleVectors.get(7).x, alphaCircleVectors.get(7).y);
+ vertex(alphaCircleVectors.get(9).x, alphaCircleVectors.get(9).y);
+ vertex(alphaCircleVectors.get(9).x, alphaCircleVectors.get(9).y);
+ vertex(alphaCircleVectors.get(11).x, alphaCircleVectors.get(11).y);
+ vertex(alphaCircleVectors.get(11).x, alphaCircleVectors.get(11).y);
+ vertex(alphaCircleVectors.get(1).x, alphaCircleVectors.get(1).y);
+ endShape();
}
void display() {
super.display();
- createDividingLines(12);
+ createDividingLines(12);
createInnerHexagon();
}
void displayConstructionLines(){
super.displayConstructionLines();
- createDividingConstructionLines(12);
+ createDividingConstructionLines(12);
}
}