MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / RGBString

Method RGBString

src/main/java/util/Strings.java:49–59  ·  view source on GitHub ↗
(String str, int hue)

Source from the content-addressed store, hash-verified

47 }
48
49 public static String RGBString(String str, int hue) {
50 String out = "";
51
52 for (char c : str.toCharArray()) {
53 if (hue < 360) hue+=10;
54 else hue = 0;
55 out += "[#" + hueToColor(hue) + (c == '[' ? "][" : "]") + c;
56 }
57
58 return out;
59 }
60
61 public static boolean canParseByteList(String[] list) {
62 for (String str : list)

Callers 1

runMethod · 0.95

Calls 1

hueToColorMethod · 0.95

Tested by

no test coverage detected