BaseRandomColor.withBlue constructor

BaseRandomColor.withBlue(
  1. int b
)

Fixed blue

Implementation

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