title: Is there a way to create a gradient range slider based on numerical input?
body: <p>In google sheets script editor, I want to be able to have a range slider so when I input a number it creates a color based on that number. </p>
  
  <p>I tried a quick numerical range slider, but I think I need to parseColor instead of the current parseFloat. </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
   &lt;html&gt;
  &lt;head&gt;
      &lt;base target="_top"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script&gt;
          function update() {
  document.getElementById('val').innerText = document.getElementById ('input').
  value;
          }
          function save() {
              // Call sheet function
  google.script.run.saveSliderVal(parseColor(document.getElementById('input').
  value, 10.00));
          }
      &lt;/script&gt;
      &lt;input id="input" type="color" onchange="update()" oninput="update()" value="0.00"
      step="0.25" /&gt;&amp;nbsp&lt;span id="val"&gt;0.00&lt;/span&gt;
  &lt;br /&gt;
  &lt;button id="save" onclick="save()"&gt;Save Rating&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>