summaryrefslogtreecommitdiffstats
path: root/AutoVisual
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-12-31 05:03:59 +0100
committerDavid Runge <dave@sleepmap.de>2015-12-31 05:03:59 +0100
commit7d2955b095b692be0d27ff7cc83fe58e3c45117d (patch)
tree538b1ecc37a41e90171802b3522053902c9d5905 /AutoVisual
parentd4e789a2760745f0989fb5fb8c53a2fb7b2d2c40 (diff)
downloadprocessing-sketchbook-7d2955b095b692be0d27ff7cc83fe58e3c45117d.tar.gz
processing-sketchbook-7d2955b095b692be0d27ff7cc83fe58e3c45117d.tar.bz2
processing-sketchbook-7d2955b095b692be0d27ff7cc83fe58e3c45117d.tar.xz
processing-sketchbook-7d2955b095b692be0d27ff7cc83fe58e3c45117d.zip
AutoVisual/IGPFamily.pde: Added functionality to create inner triangles
in the alpha circle (createInnerTriangle() and createInnerTriangleTilted()).
Diffstat (limited to 'AutoVisual')
-rw-r--r--AutoVisual/IGPFamily.pde15
1 files changed, 15 insertions, 0 deletions
diff --git a/AutoVisual/IGPFamily.pde b/AutoVisual/IGPFamily.pde
index 093c025..7de1c0a 100644
--- a/AutoVisual/IGPFamily.pde
+++ b/AutoVisual/IGPFamily.pde
@@ -144,6 +144,21 @@ class IGPFamily {
translate(mid.x*(-1), mid.y*(-1));
}
+ void createInnerTriangle(){
+ stroke(0.0, 0.0, 0.66, 0.4);
+ triangle(alphaCircleVectors.get(1).x, alphaCircleVectors.get(1).y, alphaCircleVectors.get(5).x, alphaCircleVectors.get(5).y, alphaCircleVectors.get(9).x, alphaCircleVectors.get(9).y);
+ }
+
+ void createInnerTriangleTilted(float angle){
+ stroke(0.0, 0.0, 0.66, 0.4);
+ translate(mid.x, mid.y);
+ pushMatrix();
+ rotate(radians(angle));
+ triangle(alphaCircleVectors.get(1).x-mid.x, alphaCircleVectors.get(1).y-mid.y, alphaCircleVectors.get(5).x-mid.x, alphaCircleVectors.get(5).y-mid.y, alphaCircleVectors.get(9).x-mid.x, alphaCircleVectors.get(9).y-mid.y);
+ popMatrix();
+ translate(mid.x*(-1), mid.y*(-1));
+ }
+
void display() {
createAlphaCircle();
}