!7 static int g = 20; p { RGBImage img = rgbShootScreen(); int gw = img.w()/g, gh = img.h()/g; 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); //prec *= 2; map.setPixel(x, y, prec); } showZoomedImage(map); showZoomedImage(rgbResize(img, gw, gh)); }