title: How do I create a triangle using JavaFX?
body: <p>How can I create a triangle using JavaFX?
  I have already tried these but I don't know how to fix it exactly :</p>
  
  <pre><code>Polygon triangle = new Polygon();
  triangle.getPoints().setAll(
     50, 50,
     60, 60,
     20, 40
  );
  </code></pre>