BaseRandomColor.withRed constructor

BaseRandomColor.withRed(
  1. int r
)

Fixed red

Implementation

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