Hullaballoonatic
int bb = terrain[posBlue + 1] & 0xff; int gg = terrain[posBlue + 2] & 0xff; int rr = terrain[posBlue + 3] & 0xff; g.setColor(new Color(rr, gg, bb));