static BufferedImage imageFromInt(int i, int w, int h) { RGBImage rgb = new RGBImage(w, h, Color.white); fillArray(rgb.pixels, i); ret rgb.getBufferedImage(); }