ColorParser.argb constructor

ColorParser.argb(
  1. int a,
  2. int r,
  3. int g,
  4. int b
)

create a object of this class using the ARGB values

a = alpha value 0-255, 0 being fully transparent and 255 being fully opaque r = red value 0-255 g = green value 0-255 b = blue value 0-255

Implementation

ColorParser.argb(int a, int r, int g, int b) {
  this._color = Color.fromARGB(a, r, g, b);
  _calculateFromRGB();
}