!7 static int w = 32, h = 16, ww = 400, hh = 200; p-substance { BufferedImage src = screenshot(); int srcw = src.getWidth(), srch = src.getHeight(); BufferedImage dest = newBufferedImage(ww, hh); for (int y = 0; y < hh; y += h) for (int x = 0; x < ww; x += w) { int srcX = random(srcw-w), srcY = random(srch-h); copyImagePart(src, srcX, srcY, dest, x, y); } showImage(dest); }