!7 static int w = 32, h = 16, ww = 400, hh = 200; static DirectSurface ds; sclass DirectSurface extends Surface { BufferedImage img; *() {} *(BufferedImage *img) {} public void render(int w, int h, Graphics2D g) { g.drawImage(img, 0, 0, null); } public Dimension getPreferredSize() { ret new Dimension(img.getWidth(), img.getHeight()); } } p-substance { BufferedImage src = screenshot(); int srcw = src.getWidth(), srch = src.getHeight(); BufferedImage dest = newBufferedImage(ww, hh); showPackedFrame(ds = new DirectSurface(dest)); thread { repeat { 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, w, h); ds.repaintImmediately(x, y, w, h); sleep(50); } } } }