ColorParser.rgbo constructor

ColorParser.rgbo(
  1. int r,
  2. int g,
  3. int b,
  4. double o
)

create a object of this class using the RGBO values

r = red value 0-255 g = green value 0-255 b = blue value 0-255 o = opacity as double, with 0.0 being transparent and 1.0 being fully opaque.

Implementation

ColorParser.rgbo(int r, int g, int b, double o) {
  this._color = Color.fromRGBO(r, g, b, o);
  _calculateFromRGB();
}