getColor method

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

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

Implementation

Color getColor(num r, num g, num b, [num? a]) =>
    data?.getColor(r, g, b, a) ?? ColorUint8(0);