MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / ColorToString

Method ColorToString

src/main/java/Colors/ColorTheme.java:379–388  ·  view source on GitHub ↗
(int cRed, int cGreen, int cBlue)

Source from the content-addressed store, hash-verified

377 }
378
379 public static String ColorToString(int cRed, int cGreen, int cBlue) {
380 StringBuffer color=new StringBuffer(8);
381
382 color.append("0x")
383 .append(expandHex(cRed))
384 .append(expandHex(cGreen))
385 .append(expandHex(cBlue));
386
387 return color.toString();
388 }
389
390 public static String expandHex(int eVal) {
391 String rVal=Integer.toHexString(eVal);

Callers 2

drawItemMethod · 0.95
eventOkMethod · 0.95

Calls 3

expandHexMethod · 0.95
appendMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected