// These macros create half circle selections. macro "Make right half circle" { if (selectionType!=1) exit("Elliptical selection required"); getBoundingRect(x, y, width, height); midx = x + width/2; getSelectionCoordinates(sx, sy); for (i=0; imidx) sx[i] = midx; } makeSelection(3, sx, sy); } macro "Make bottom half circle" { if (selectionType!=1) exit("Elliptical selection required"); getBoundingRect(x, y, width, height); midy = y + height/2; getSelectionCoordinates(sx, sy); for (i=0; imidy) sy[i] = midy; } makeSelection(3, sx, sy); }