BaseRandomColor.withAlpha constructor

BaseRandomColor.withAlpha(
  1. int a
)

Fixed alpha

Implementation

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