static L petRender_lookup = ll( "!\"#$%&'()*+,-./0123456789:;<=>?@", "ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`", "abcdefghijklmnopqrstuvwxyz{|}~ "); static BufferedImage petRender_image; static void petRender(BufferedImage canvas, int x, int y, char c) { if (petRender_image == null) petRender_image = loadImage2(#1008951); Pair yx = indexOfIndexOf(petRender_lookup, c); if (yx == null) yx = pair(0, 0); copyBufferedImage(petRender_image, yx.b*16, yx.a*16, canvas, x, y, 16, 16); }