!7 static int g = 20; p { final RGBImage img = rgbShootScreen(); final int gw = img.w()/g, gh = img.h()/g; final BWImage map = new BWImage(gw, gh); for y to gh: for x to gw: { Rect r = new Rect(x*g, y*g, g, g); float prec = rgbLocalPrecision(img, r); print(prec); map.setPixel(x, y, 1-prec); } awt { showZoomedImage(map, 4); final RGBImage img2 = rgbResize(img, gw, gh); moveFrameDown(100, showZoomedImage(img2, 4); } }