getGreen method

num getGreen(
  1. int x,
  2. int y
)

Get the value of the green channel at the given pixel coordinates x, y.

Implementation

num getGreen(int x, int y) => green != null
    ? green!.isFloat
        ? green!.getFloat(x, y)
        : green!.getInt(x, y)
    : 0;