I have a 2D array A: nxn with values of a function, and I want to take the values in different arrays for the black values, white values and gray values.
For example for the black and white values I wrote:
black_values = A[::2,::2]
white_values = A[1::2,1::2]
How to get the gray values?
