pyaesthetics.utils.find_neighbors

pyaesthetics.utils.find_neighbors(index, size=8)

Find all neighboring cells for a given cell index in an NxN matrix.

Parameters:
  • index – Index of the cell in the NxN matrix.

  • size – Size of the matrix (default is 8 for an 8x8 matrix).

Returns:

List of neighboring cell indices.