static Image2B image2BFromFunction(int w, int h default w, IF2_IntInt_Bool f) { Image2b img = new(w, h); for y to h: for x to w: img.setPixel(x, y, f.get(x, y)); ret img; }