title: How save LinearGradient To database
body: <p>I dynamically paint figures witch javascript in a HTML canvas and I need to use a linear gradient to fill style the figures  and save that information to a database  </p>
  
  <p>If I try to do a JSON.stringify on the linear gradient object only return "{}"</p>
  
  <pre><code>var grd = this.context.createLinearGradient(dx,(dy), (dx + 60 * 3),(dy + 50));
  grd.addColorStop(0, "white");
  grd.addColorStop(0.5, "red");
  grd.addColorStop(1, "black");
  </code></pre>
  
  <p>I want to store that object to use in many figures dynamically with javascript</p>