title: Draw path - canvas
body: <p>i want to draw a simple path in canvas like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Y7VlV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y7VlV.jpg" alt="example"></a></p>
  
  <p>i have allready tried (also im not sure how to create the point with a radius at 440, 400):</p>
  
  <pre><code>ctx.beginPath();
  ctx.moveTo(0, 0);
  ctx.lineTo(500, 0);
  ctx.lineTo(440, 400);
  ctx.lineTo(0, 500);
  ctx.lineTo(0, 0);
  ctx.fill();
  </code></pre>
  
  <p>but it shows me just a black 600x600 rectangle
  <a href="https://jsfiddle.net/aaroniker/pmgkymch/" rel="nofollow noreferrer">https://jsfiddle.net/aaroniker/pmgkymch/</a></p>
  
  <p>Thanks!</p>