{"ScriptPreparationCode":"function cell1(width, height, cols, rows, x, y) {\r\n // mainly meant for the drawImage function (spread at arguments[1])\r\n let w = height / rows,\r\n h = width / cols\r\n return Uint16Array.of(w * x % width, h * y % height, w, h)\r\n}\r\n\r\nfunction cell2(width, height, cols, rows, x, y) {\r\n // mainly meant for the drawImage function (spread at arguments[1])\r\n let w = height / rows,\r\n h = width / cols\r\n return [w * x % width, h * y % height, w, h]\r\n}","TestCases":[{"Name":"Uint16Array","Code":"for(let i = 1000; i--;) {\r\nlet {0: x, 1: y, 2: width, 3: height} = cell1(100,100,10,10, i, i)}","IsDeferred":false},{"Name":"Array","Code":"for(let i = 1000; i--;) {\r\nlet {0: x, 1: y, 2: width, 3: height} = cell2(100,100,10,10, i, i)}","IsDeferred":false}]}