/** * Synthesis 4: Structure and Interface * Swingtree by Andreas Schlegel (www.sojamo.de) at ART+COM (www.artcom.de) * p. 498 * * Loads a data file to create the connections of the tree elements. * The size and motion is affected by the mouse. */ Branch[] b; Segment[] s; int rootX; int rootY; int rootId; int redNum = 139; float pX,pY; int frameCounter = 0; void setup() { size(400, 900); rootX = width/2; rootY = height; parseTree(); for(int i=0; i " + rootId); for(int i=0; i