2 <head><meta charset=
"utf-8"></head>
4 <canvas id=
"canvas" width=
"200" height=
"200"></canvas>
6 let canvas
= document
.getElementById('canvas');
7 let ctx
= canvas
.getContext('2d');
8 let arr
= new Uint8ClampedArray(Array(40000).fill(200));
9 createImageBitmap(new ImageData(arr
, 100)).then(img
=> {
10 for (let i
=0; i
<100; i
+=50)
11 ctx
.drawImage(img
, i
, i
);