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