/* Macro to simulate many particles originating at a single point and moving out from that point in 2D following a simple set of rules. Macro for ImageJ. Originally written before 2006 and annotated & updated in 2017. To use: install and run in ImageJ or FIJI and then scroll through the stack. Is there a trend? If there is a trend or clear rules, what are they? How would you compare these paths to ones generated by cell or particle tracking in biological systems? The point is to think about this and then think about how we make narratives for what we see in cell or particle tracking in biological situations. Make this assessment before reading the code to see the rules. There is a similar macro that makes paths of equal lengths but different amounts of allowable trajectory. (Need to locate it an combine with this one. It is with the files comparing IJ, Volocity, and Imaris tracking generated 2010-12.) */ macro 'make paths' { run("New...", "name=fractalplot type=8-bit fill=Black width=512 height=512 slices=1"); autoUpdate(false); setColor(255); xoffset = 256; yoffset = 256; xamp=6; yamp=6; stepsize = 0.01; //theta = 0.000000000001; // not used in this version xfactor = 1; for (windows=1;windows<=100;windows++){ //xoffset = random()*512; yoffset =random*512; xoffset = 256; yoffset =256; x=0; y=0; // this sets X and Y at their center points stepsize = 0.01; theta = windows * stepsize; iterations = 1; //maxcount = (3.1415*2) / stepsize * iterations; maxcount = 255; for (count=0;count