BaseRandomColor.withGreen constructor

BaseRandomColor.withGreen(
  1. int g
)

Fixed green

Implementation

BaseRandomColor.withGreen(int g)
    : super((((Random().nextInt(256) & 0xff) << 24) | ((Random().nextInt(256) & 0xff) << 16) | ((g & 0xff) << 8) | ((Random().nextInt(256) & 0xff) << 0)) &
          0xFFFFFFFF);