title: How to fill background color to svg image in percentage
body: <p>How to fill background color to SVG image in percentage </p>
  
  <p>I want to fill color to svg image in percentage</p>
  
  <p>Here is moon svg image I want to fill white color base on the illumination percentage on moon</p>
  
  <p>90%
  80%
  70%
  and so on</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt; 
  &lt;svg xmlns="http://www.w3.org/2000/svg" width="139" height="134"&gt; 
  &lt;g&gt; 
    &lt;circle stroke-width="7" stroke="#000" fill="#fff" r="58" cy="69" cx="69"/&gt;
    &lt;path stroke-width="0" fill="#000" d="m69,9 a62,60 0 0 0 1,121 l0,-5 a70,68 0 0 1 0,-110 l0,-5 z"/&gt;
   &lt;/g&gt;&lt;/svg&gt;</code></pre>
  </div>
  </div>
  </p>