static RGBImage mergeImagesHorizontally_top(RGBImage... images) { ret mergeImagesHorizontally_top(toList(images)); } static RGBImage mergeImagesHorizontally_top(L images) { int spacing = imageMergeSpacing(); RGB spaceColor = new RGB(0.9f); int w = intSum(images, "width")+(l(images)-1)*spacing, h = intMax(images, "height"); RGBImage out = new RGBImage(w, h, spaceColor); int x = 0; for i over images: { RGBImage img = images.get(i); copyRGBImage(img, 0, 0, out, x, 0); x += img.w() + spacing; } ret out; }