static RGBImage rgbImageFromLLLDouble255(L> l) { int h = l(l), w = l(first(l)); RGBImage img = new(w, h); for y to h: for x to w: { L pix = l.get(y).get(x); img.setPixel(x, y, toInt(pix.get(0)), toInt(pix.get(1)), toInt(pix.get(2))); } ret img; }