0 <= red < 1.0
0 <= green < 1.0
0 <= blue < 1.0
Am I doing it right and if so is this the best way to do this?
//Random Object color
float red = (float) (Math.random() * (1.0));
float green = (float) (Math.random() * (1.0));
float blue = (float) (Math.random() * (1.0));
Color color = new Color(red, green, blue);

New Topic/Question
Reply



MultiQuote




|