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 ? ColorFloat64.rgb(r, g, b) : ColorFloat64.rgba(r, g, b, a);