static JTextPane showLineCompedSingleLevelsAsColoredText(LineCompedSingle lc) { // each byte is the character's "color" // (0 for empty, 1 for color one, 2 for color two) byte[][] rows = renderLineCompedSingleLevels_raw(lc); S text = uncompressLineCompedSingle(lc); //printVars(+rows); int n = l(first(rows)); new L out; forEach(rows, row -> { for i to n: { if (row[i] == 0) { out.add(Color.white); out.add(' '); } else { out.add(row[i] == 1 ? Color.yellow : Color.blue); out.add(text.charAt(i)); } } out.add("\n"); }); ret withTypeWriterFont(showColoredText(out)); }