getOffset method

int getOffset(
  1. int x,
  2. int y
)

Implementation

int getOffset(int x, int y) => (x + y * width) * 4;