1<!DOCTYPE html>
2<html>
3<body>
4
5<canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3;">
6Your browser does not support the HTML5 canvas tag.</canvas>
7
8<script>
9var c = document.getElementById("myCanvas");
10var ctx = c.getContext("2d");
11ctx.fillRect(10, 10, 100, 50);
12ctx.translate(70, 70);
13ctx.fillRect(10, 10, 100, 50);
14</script>
15
16</body>
17</html>
18