title: On iOS, how to fill a path with an outline? (or both fill and stroke the path)
body: <p>On iOS, if we do</p>
  
  <pre><code>CGContextMoveToPoint(contextFoo, 0, 0);
  CGContextAddLineToPoint(contextFoo, x, y);
  CGContextAddLineToPoint(contextFoo, x2, y2);
  // ... and many more CGContextAddLineToPoint
  </code></pre>
  
  <p>then after this, if we do a <code>CGContextStrokePath</code>, we will get an outline, or if we <code>CGContextFillPath</code>, we get the "fill", but we can't do both, because after a stroke or a fill, the "current path" is gone.  How can we both fill and stroke a path (such as wanting a yellow fill and orange outline)?  </p>
  
  <p>We can move the <code>MoveTo</code> and <code>AddLine</code> calls to a function, and call that function, do a fill, and call the function again, and do a stroke, but there are many <code>x</code> and <code>y</code> that makes passing all of them to the function quite troublesome.  What might be some ways to do this?</p>