5 <canvas id=
"mycanvas" width=
"300" height=
"300"></canvas>
7 var canvas
= document
.getElementById('mycanvas');
8 var ctx
= canvas
.getContext('2d');
10 ctx
.fillStyle
= '#0f0';
11 ctx
.fillRect(0, 0, canvas
.width
, canvas
.height
);
12 ctx
.lineJoin
= 'bevel';
15 ctx
.ellipse(200, 150, 40, 80, -Math
.PI
/ 6, Math
.PI
/ 2, -Math
.PI
/ 2, false);
16 ctx
.ellipse(100, 150, 40, 80, Math
.PI
/ 6, Math
.PI
/ 2, -Math
.PI
/ 2, false);