I needed to colorize some rectangles so you can better see them. Therefore i wrote a so small method to do this, its incredible :)
// Some Vars needed for the color. Some of them can also be hardcoded... (max_co, step)
int[] next_color = {0x70,0x00,0x00};
private int max_co = 0xF0;
private int next_c = 0x01;
private int step = 0x10;
public Color getNextColor(){
// Bam, increment and then mod it same time :o
next_color[next_c%3]%=max_co;
next_color[(next_c++)%3]+=step;
return new Color(next_color[0], next_color[1], next_color[2]);
}
awesome!