title: Xcode, SKSpriteKit, can't draw quadrilateral
body: <p>I'm using Xcode, SKSpriteKit and am creating a game.</p>
  
  <p>I need my program to draw a quadrilateral in a function.</p>
  
  <pre><code>    -(void) DrawQuad {
      //Draw Quadrilateral here with points (a,b), (c,d), (e,f), (g,h)
      }
  </code></pre>
  
  <p>I have already tried other links/help but for some reason, the code I paste doesn't work.</p>
  
  <p>For example, at: <a href="https://stackoverflow.com/questions/19100888/draw-rectangle-circle-and-triangle-in-spritekit-with-two-colors">Draw Rectangle/ Circle and Triangle in Spritekit with Two Colors. . .</a>, I try copy and pasting that function into my code (In the .mm file). It doesn't work: </p>
  
  <p><img src="https://i.stack.imgur.com/oXug4.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/MzN5K.png" alt="enter image description here"></p>
  
  <p>Even making the suggested changes in the program still doesn't resolve the issue.</p>