<html>
<head>
</head>
<body>
<canvas id="canvas" width="45" height="100" style="border:1px solid #d3d3d3;"></canvas>
<script>
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
ctx.fillRect(0,0, 15, 10);
ctx.fillRect(30,0, 15, 10);
ctx.fillRect(0,40, 15, 10);
ctx.fillRect(30,40, 15, 10);
ctx.fillRect(15,10, 15, 90);
ctx.fillRect(0,90, 15, 10);
ctx.fillRect(30,90, 15, 10);
</script>
</body>
</html>
|