I'm using npm:get-pixels which returns an ndarray and I'm having some trouble understanding how to correctly work this array.
Assuming pixels is the ndarray
console.log(pixels.get(800, 200, 0));
console.log(pixels.get(800, 200, 1));
console.log(pixels.get(800, 200, 2));
will print the RGB value of the pixel at coordinates [800,200] of the image.
Do I have to use three seperate .get() to achieve this?
Node Libray
get-pixels