at method

int at(
  1. int x,
  2. int y,
  3. int c
)

The channel c (0 red … 3 alpha) at x, y.

Implementation

int at(int x, int y, int c) => rgba[(y * width + x) * 4 + c];