title: HTML5 Canvas: Manipulating Individual Paths
body: <p>How can I save a specific path to a javascript variable/array, and later manipulate it, when using an HTML5 canvas?  Here's what I'm doing thus far:</p>
  
  <pre><code>                    ctx.beginPath();
                          ctx.moveTo(lastX,lastY);
                          ctx.lineTo(x,y);
                          ctx.lineWidth = s*2;
                          ctx.stroke();
                      ctx.closePath();
  </code></pre>
  
  <p>Now, what I need is to be able to, at times, store this path in an array.  Then, I need to be able to go back and change the color of all the paths in the array later.  (I don't know how to do this either, obviously.)</p>