import processing.pdf.*; PFont smFont; float gm = 137.5077640500378; // golden mean ratio float spacer = 0.6176470588235294/2; // the incremental distance I want the // radius to increase by (21/34)/2 float iNodeX = 0; // initial radius float iNodeY = 0; int iNode = 0; // current node number int maxNodes=3000; float currAngle = 0; // current angle boolean record=false; void setup(){ size(500, 500); smFont=loadFont("HelveticaNeue-12.vlw"); background(255); noStroke(); ellipseMode(CENTER); smooth(); } void draw(){ if (record){ beginRecord(PDF, "phyllotaxis cn0["+cn[0]+"] cn1["+cn[1]+"] cn2["+cn[2]+"].pdf"); } background(255); point(width/2,height/2); currAngle=0; for (int i=-50;i