image-js
Version:
Image processing and manipulation in JavaScript
15 lines • 459 B
JavaScript
/**
* Coordinates of the surrounding pixels relative to the current pixel.
* First pixel is the one on the right, then they are in clockwise order.
*/
export const surroundingPixels = [
{ row: 0, column: 1 },
{ row: 1, column: 1 },
{ row: 1, column: 0 },
{ row: 1, column: -1 },
{ row: 0, column: -1 },
{ row: -1, column: -1 },
{ row: -1, column: 0 },
{ row: -1, column: 1 },
];
//# sourceMappingURL=surroundingPixels.js.map