title: How do I add fillStyle to Path2D? JS Canvas
body: <p>This is probably impossible as of the date this question is asked but can <code>Path2D()</code> have a <code>fillStyle</code> inside of the function?
  Example:
  <code>Path2D('M10 10 h10 v15 h -18 Z #ff00ff');</code></p>
  <p>I know that I can add <code>ctx.fillStyle = color;</code> before.</p>
  <p>I might ignore the first few people that say I can't just to see who if someone else comes up with an answer unless a proper explanation is given.</p>