Method
ColorToString
(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); |
Tested by
no test coverage detected