getColor method

  1. @override
Color getColor(
  1. num r,
  2. num g,
  3. num b, [
  4. num? a,
])
override

Create a Color object with the format and number of channels of the image.

Implementation

@override
Color getColor(num r, num g, num b, [num? a]) => a == null
    ? ColorUint1.rgb(r.toInt(), g.toInt(), b.toInt())
    : ColorUint1.rgba(r.toInt(), g.toInt(), b.toInt(), a.toInt());