if (slopeIsPositive) term = x+y; else term = x-y;
if (slopeIsPositive) { term = x+y; } else { term = x-y; }
  makeDiagonalBroken(int fgColor, int bgColor, int spacing,boolean slopeIsPositive,		     int thickness) {     int w = imageWidth_;    int h = imageHeight_;    int pix[] = new int[w*h];     int index, y,x,j,term;    int band = 8;     index = 0;    for (y=0; y<h; y++) {      for (x=0; x<w; x++) {	if (slopeIsPositive) term = x+y;	else term = x-y; 	boolean foregroundPixel = false; 	for (j=0; j < thickness; j++) {	  if ((term - j) % spacing == 0 && x % band !=0)	    foregroundPixel = true;	} 	if (foregroundPixel)	  pix[index++] = fgColor;	else if (pix[index] == 0)	  pix[index++] = bgColor;	else;      }    }    MemoryImageSource mi = new MemoryImageSource(w, h, pix, 0, w);    Image image = tk_.createImage(mi);    return image;  }