{"ScriptPreparationCode":"$canvas = document.getElementById(\u0027c\u0027);\r\n$ctx = $canvas.getContext(\u00272d\u0027);\r\n$cw = $canvas.width;\r\n$ch = $canvas.height;\r\n$id = $ctx.getImageData(0, 0, 1, 1);\r\n$ctx.clearRect(0, 0, $cw, $ch);\r\n\r\nfunction rng() {\r\n return [\r\n Math.floor(Math.random() * $cw),\r\n Math.floor(Math.random() * $ch),\r\n Math.floor(Math.random() * 256),\r\n Math.floor(Math.random() * 256),\r\n Math.floor(Math.random() * 256)\r\n ];\r\n}","TestCases":[{"Name":"putImageData","Code":"{\r\n const [x, y, r, g, b] = rng();\r\n $id.data[0] = r;\r\n $id.data[1] = g;\r\n $id.data[2] = b;\r\n $ctx.putImageData($id, x, y);\r\n}","IsDeferred":false},{"Name":"fillRect","Code":"{\r\n const [x, y, r, g, b] = rng();\r\n $ctx.fillStyle = \u0060rgb(${r},${g},${b})\u0060;\r\n $ctx.fillRect(x, y, 1, 1);\r\n}","IsDeferred":false}]}