1<!doctype html>
2<html>
3<head>
4<body>
5<canvas></canvas>
6<script>
7var canvas=document.querySelector('canvas');
8var context=canvas.getContext(2d);
9context.beginPath();
10 context.moveTo(75,75);
11 context.lineTo(10,75);
12 context.lineTo(10,25);
13 context.fill();
14 </script>
15 </body>
16 </head>
17 </html>