I have the following array and I would like to expand an area around X and turn array elements around X from 0 to 1. Any suggestions on how to do it?
From this array
[[0,0,0,0,0,0,0],
[0,0,0,x,0,0,0],
[0,0,0,0,0,0,0]]
To this array
[[0,0,1,1,1,0,0],
[0,0,1,x,1,0,0],
[0,0,1,1,1,0,0]]