Tag:Diagonal angle

  • Rotated image

    Time:2020-2-26

    export default (arr) => { //Get dimension let vecor = arr.length //Flip vertically for (let i = 0, len = vecor / 2; i < len; i++) { for (let j = 0, tmp; j < vecor; j++) { tmp = arr[i][j] arr[i][j] = arr[vecor – i – 1][j] arr[vecor – i – 1][j] = […]