src/modules/numerical/genImageData.js
//scales the 2d array to a different size
scales the 2d array to a different size
scales the 2d array to a different size
function scaleGrid(scaling, gridlength) {
    const scaledL = gridlength * scaling;
    let map = new Array(scaledL);
    for (let i = 0; i < scaledL; i++) {
        map[i] = new Array(scaledL);
    }
    return map;
}
function scaleGrid ( scaling , gridlength ) { const scaledL = gridlength * scaling ; let map = new Array ( scaledL ) ; for ( let i = 0 ; i < scaledL ; i ++ ) { map [ i ] = new Array ( scaledL ) ; } return map ; }
scales the 2d array to a different size
scales the 2d array to a different size