randomColor static method
生成随机颜色
返回一个随机生成的Color对象
Implementation
static Color randomColor() {
Random random = Random();
int red = random.nextInt(256);
int green = random.nextInt(256);
int blue = random.nextInt(256);
return Color.fromRGBO(red, green, blue, 1.0);
}