Blame |
Last modification |
View Log
| RSS feed
package dongfang.mk.ui;
import java.awt.Color;
import dongfang.mkt.MKGlobals;
public class DebugColors
{
public static final Color[] debugColors =
new Color[MKGlobals.
NUM_DEBUG_CHANNELS];
static {
for (int i=
0; i
<debugColors.
length; i++
) {
int r = i
% 3;
int g = i
% 5;
int b = i
% 7;
int offset =
100;
debugColors
[i
] =
new Color(
offset + r
* 10,
offset + g
* 10,
offset + b
* 10
);
}
}
public static Color[] getDebugColors
() {
return debugColors
;
}
public static Color getDebugColor
(int index
) {
return debugColors
[index
];
}
}