{"ScriptPreparationCode":"var width = 1000;\r\nvar height = 1000;\r\nvar values = values = new Array(width * height).map(() =\u003E Math.round(Math.random()) ? true : false);","TestCases":[{"Name":"For","Code":" const data = new Uint8Array(width * height * 4);\r\n for (let i = 0; i \u003C values.length; i\u002B\u002B) {\r\n const colorValue = values[i] ? 255 : 0;\r\n data[i \u002B 0] = colorValue;\r\n data[i \u002B 1] = colorValue;\r\n data[i \u002B 2] = colorValue;\r\n data[i \u002B 3] = 1;\r\n }","IsDeferred":false},{"Name":"Map","Code":" const data = new Uint8Array(this.width * this.height * 4).map((_value, index) =\u003E {\r\n const channel = index % 4;\r\n if (channel === 3) return 1;\r\n return values[index - channel] ? 255 : 0;\r\n });","IsDeferred":false}]}