function fillCircleArrayRowToMiddle(array, x, y) {
  let i;
  const radius = Math.floor(array.length / 2);
  if (x >= radius) {
    for (i = radius; i < x; i++) {
      array[i][y] = true;
    }
  } else if (x < radius) {
    for (i = x + 1; i < radius; i++) {
      array[i][y] = true;
    }
  }
}
function fillCircleArrayRowToMiddle(array, x, y) {
  let i;
  const radius = Math.floor(array.length / 2);
  if (x >= radius) {
    for (i = radius; i < x; i++) {
      array[i][y] = true;
    }
  } else if (x < radius) {
    for (i = x + 1; i < radius; i++) {
      array[i][y] = true;
    }
  }
}
function fillCircleArrayRowToMiddle ( array , x , y ) { let i ; const radius = Math . floor ( array . length / 2 ) ; if ( x >= radius ) { for ( i = radius ; i < x ; i ++ ) { array [ i ] [ y ] = true ; } } else if ( x < radius ) { for ( i = x + 1 ; i < radius ; i ++ ) { array [ i ] [ y ] = true ; } } }
This method fills a row in the array from the given coordinate to the
middle with `true`.
@param {Array<Array<(boolean|undefined)>>} array The array that will be altered.
@param {number} x X coordinate.
@param {number} y Y coordinate.
This method fills a row in the array from the given coordinate to the middle with true .
Fill the array row to the middle of the circle