public static String encode(Object... elements) {
		final StringBuilder sb = new StringBuilder();
		buildEnabled(sb, elements);
		return sb.toString();
	}
@Test
	public void colorMappingTest(){
		String text4 = "RGB:({},{},{})--4bit ";
		String text8 = "RGB:({},{},{})--8bit ";
		final AnsiColors ansiColors4Bit = new AnsiColors(AnsiColors.BitDepth.FOUR);
		final AnsiColors ansiColors8Bit = new AnsiColors(AnsiColors.BitDepth.EIGHT);
		int count = 0;
		int from = 100000;
		int until = 120000;
		for (int r = 0; r < 256; r++) {
			if (count>until)break;
			for (int g = 0; g < 256; g++) {
				if (count>until)break;
				for (int b = 0; b < 256; b++) {
					count++;
					if (count<from)continue;
					if (count>until)break;
					AnsiElement backElement4bit = ansiColors4Bit.findClosest(new Color(r,g,b)).toAnsiElement(ForeOrBack.BACK);
					AnsiElement backElement8bit = ansiColors8Bit.findClosest(new Color(r,g,b)).toAnsiElement(ForeOrBack.BACK);
					String encode4 = AnsiEncoder.encode( backElement4bit,text4);
					String encode8 = AnsiEncoder.encode( backElement8bit,text8);
					//Console.log(StrUtil.format(encode4,r,g,b)+StrUtil.format(encode8,r,g,b));
				}
			}
		}
	}