pixel method

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

Returns a pixel at (x,y) in the format 4-byte Uint32 integer in format.

Implementation

int pixel(int x, int y) => pixels[pixelIndex(x, y)];