randomColor static method
Implementation
static Color randomColor(
{double saturation = 0.6, double brightness = 0.75}) {
double hue = rng.nextDouble();
return HSVColor.fromAHSV(1.0, hue * 360.0, saturation, brightness)
.toColor();
}
static Color randomColor(
{double saturation = 0.6, double brightness = 0.75}) {
double hue = rng.nextDouble();
return HSVColor.fromAHSV(1.0, hue * 360.0, saturation, brightness)
.toColor();
}