static RGBImage rgbImageFromFunction(int w, int h default w, IF2 f) { RGBImage img = new(w, h); for y to h: for x to w: img.setPixel(x, y, f.get(x, y)); ret img; }