randomColor static method

HSVColor randomColor()

Generates random color to be used by the rectangles

Implementation

static HSVColor randomColor() {
  return HSVColor.fromAHSV(
    1.0,
    ((random.nextDouble() * 360) % 36) * 10,
    random.nextDouble() * 0.2 + 0.1,
    random.nextDouble() * 0.1 + 0.9,
  );
}