1 <div style=
"width: 100px; height: 100px;"><canvas id=
"canvas" width=
"100" height=
"50"></canvas></div>
3 var can
= document
.getElementById('canvas');
4 var ctx
= can
.getContext('2d');
6 ctx
.shadowOffsetX
= 24;
7 ctx
.shadowOffsetY
= 24;
8 ctx
.shadowColor
= 'blue';
11 ctx
.fillStyle
= 'black';
12 ctx
.fillRect(0,0,40,40);