ColorRgba8.from constructor

ColorRgba8.from(
  1. ColorUint8 other
)

Implementation

ColorRgba8.from(ColorUint8 other) : super(4) {
  data[0] = other[0] as int;
  data[1] = other[1] as int;
  data[2] = other[2] as int;
  data[3] = other[3] as int;
}