3 <canvas width=
"500" height=
"500"></canvas>
5 var canvas
= document
.getElementsByTagName('canvas')[0];
6 var ctx
= canvas
.getContext('2d');
9 ctx
.translate(41, 41.);
10 ctx
.rect(0, 0, 100, 100);
11 ctx
.translate(100, 0);
13 ctx
.quadraticCurveTo(100, 100, 200,0);
14 ctx
.translate(200, 0);
16 ctx
.bezierCurveTo(100, 100, 200, -100, 300,0);