// Draws concentric rings running out from // the center of the image window. // Based on the bullseye.js script distributed // with Kas Thomas' JavaScript Editor plugin at // http://rsb.info.nih.gov/ij/plugins/javascript.html // // In ImageJ 1.42 or later, a better way to do this // sort of thing is to use the Process>Math>Macro // command, for example: // run("Macro...","code=v=(sin(d/10+a*PI/180)+1)*128"); w = 512; h = 512; start = getTime(); xcenter = w/2; ycenter = h/2; newImage("Bulls Eye", "RGB", w, h, 1); for (y=0; y