else if ((term2 - j) % spacing == 0)
} else if ((term2 - j) % spacing == 0){
  makeStarsVertical(int fgColor, int bgColor, int starColor) {     int w = imageWidth_;    int h = imageHeight_;    int pix[] = new int[w*h];      int index, y,x,j;    int spacing = 16;   //hardwired     index = 0;    for (y=0; y<h; y++) {      for (x=0; x<w; x++) { 	int term1 = x+y;	int term2 = x-y; 	boolean foregroundPixel = false; 	for (j=0; j < 2; j++) {    	  if ((term1 - j) % spacing == 0)	    foregroundPixel = true;	  else if ((term2 - j) % spacing == 0)	    foregroundPixel = true;	  else;	}	boolean foregroundPixel2 = true;	for (j =-3; j<4; j++) {	  if ((y+j) % spacing == 0) foregroundPixel2= false;	}	boolean foregroundPixel3 = false;	for (j =-1; j<1; j++) {	  if ((x+spacing/2+j) % spacing == 0) foregroundPixel3 = true;	}	boolean foregroundPixel4 = true;	for (j =-2; j<3; j++) {	  if ((y+j) % spacing == 0) foregroundPixel4= false;	}	if (foregroundPixel && foregroundPixel2)	  pix[index++] = starColor;	else if (foregroundPixel3 && foregroundPixel4)	  pix[index++] = starColor;	else if (x % spacing == 0 || x % (spacing/2) == 0)	  pix[index++] = fgColor;	else 	  pix[index++] = bgColor;      }    }    MemoryImageSource mi = new MemoryImageSource(w, h, pix, 0, w);    Image image = tk_.createImage(mi);    return image;  }