ColorSet.ofSomeRandomColor constructor

ColorSet.ofSomeRandomColor()

Factory method to create a ColorSet from a random background or surface color.

Implementation

factory ColorSet.ofSomeRandomColor() {
  Color backgroundColor = randomColor();
  return ColorSet.of(backgroundColor);
}