title: How to draw a triangle, a star, a square or a heart on the canvas?
body: <p>I am able to draw a circle and a rectangle on canvas by using<br />
  <code>path.addCircle()</code></p>
  <p>and</p>
  <p><code>path.addRect()</code>.</p>
  <p>And now I am wondering how to draw a triangle or a star or  a square or a heart?</p>