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.
 

13 lines
335 B

x=20; y=30; size=18;
interval=1; //seconds
i = floor(i*interval); // 'i' is the image index
setFont("SansSerif", size, "antialiased");
setColor("white");
s = ""+pad(floor(i/3600))+":"+pad(floor((i/60)%60))+":"+pad(i%60);
drawString(s, x, y);
function pad(n) {
str = toString(n);
if (lengthOf(str)==1) str="0"+str;
return str;
}