Untitled
Anonymous
plain_text
09/18/2022 3:51 AM
444 B
18
Indexable
newRole.setColor(getColor());
newRole.complete();
}
}
// Give the roles a random color
public Color getColor() {
int R = (int)(Math.random()*255);
int G = (int)(Math.random()*255);
int B= (int)(Math.random()*255);
return new Color(R, G, B);
}Editor is loading...