ImageJ base code to get access to all the classes and their methods to test new Plugins. https://imagejdocu.tudor.lu/howto/plugins/the_imagej_eclipse_howto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
388 B

newImage("Untitled", "RGB", 400, 400, 1);
width = getWidth();
height = getHeight();
for (i=0; i<1000; i++) {
if (nSlices!=1) exit;
w = random()*width/2+1;
h = random()*width/2+1;
x = random()*width-w/2;
y = random()*height-h/2;
setForegroundColor(random()*255, random()*255, random()*255);
makeOval(x, y, w, h);
run("Fill");
}