blob: d8003b58e3ac1c5e917500a59b60c0d2e56287a3 [file] [log] [blame]
<!DOCTYPE html>
<body>
<canvas id="canvas" width="200" height="400"></canvas>
</body>
<script>
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 100, 150);
ctx.fillStyle = 'red';
ctx.fillRect(0, 150, 200, 250);
</script>