class Florets { int seedNum; // Number of seeds in the entire spiral Floret[] florets; // array holding all the original florets that compose the spiral float seedSize = 20; // diameter of seeds Florets(int sn) { seedNum = sn; florets = new Floret[seedNum]; } // create florets, links, and draw them out void init() { generateFlorets(); generateNetwork(); drawFlorets(); } // fill array with florets positioned according to Fermat's spiral void generateFlorets() { for(int i=0; i= 1) florets[i-a].setNear(); if(i-b >= 1) florets[i-b].setNear(); if(i+b <= numFlorets) florets[i+b].setNear(); if(i+a <= numFlorets) florets[i+a].setNear(); } } } }