2 <canvas width=
100 height=
100></canvas>
5 img
.src
= 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="#008000"/></svg>';
6 var c
= document
.querySelector('canvas').getContext('2d');
8 c
.drawImage(img
, 0, 0);