blob: 9effb3a396c43ca4e1c03ef05d9cef5a0463e3bc [file] [log] [blame]
<canvas id="canvas" class="output" width="300" height="300"></canvas>
<script>
var ctx = document.getElementById("canvas").getContext("2d");
var angle = .4;
ctx.beginPath();
ctx.rotate(angle);
ctx.moveTo(100,100);
ctx.lineTo(20,30);
ctx.rotate(angle);
ctx.lineTo(40,-50);
ctx.stroke();
</script>