Returns a GridCellAccessor to get values from array based on cell ({x,y}) coordinates.
array
{x,y}
const arr = [ 1,2,3, 4,5,6]const a = access(arr, 3);a({x:0,y:0}); // 1a({x:2, y:2}); // 6 Copy
const arr = [ 1,2,3, 4,5,6]const a = access(arr, 3);a({x:0,y:0}); // 1a({x:2, y:2}); // 6
Returns a GridCellAccessor to get values from
array
based on cell ({x,y}
) coordinates.