!7 p { BufferedImage img = shootScreen2(); Rect r = ocr_findTerminalBackground(new RGBImage(img)); if (r == null) print("no terminal"); else { final BufferedImage terminal = clipBufferedImage(img, r); final ImageSurface is = showImage(terminal); JSlider slider = jliveSlider(1, 50, 10, voidfunc(Int ww) { new L rects; int w = terminal.getWidth(); for (int x = 0; x < w; x += ww) rects.add(new Rect(x, 0, min(ww, w-x), terminal.getHeight())); is.setImage(mergeImagePartsHorizontally(new RGBImage(terminal), rects)); }); addToWindowWithMargin(is, sliderWithValueLabel(slider)); } }