From 7d2955b095b692be0d27ff7cc83fe58e3c45117d Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 31 Dec 2015 05:03:59 +0100 Subject: AutoVisual/IGPFamily.pde: Added functionality to create inner triangles in the alpha circle (createInnerTriangle() and createInnerTriangleTilted()). --- AutoVisual/IGPFamily.pde | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'AutoVisual') 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(); } -- cgit v1.2.3-70-g09d2