title: Convert CSS cubic bezier easing to Javascript
body: <p>I'm looking for a way to generate easing functions for my tweens, I need them in Javascript function format, with the standard <code>t, b, c, d</code> parameters.</p>
  
  <p>I've found a great tool to generate CSS easing: <a href="http://cubic-bezier.com/" rel="noreferrer">http://cubic-bezier.com/</a> but the output is useless to me.</p>
  
  <ul>
  <li><strong>Is there a way to convert this format to a Javascript easing function?</strong></li>
  <li><strong>Are there any better tools to directly build Javascript easing functions?</strong></li>
  </ul>
  
  <hr>
  
  <p>The desired format is something like:</p>
  
  <pre><code>function(t, b, c, d){
      var ts = (t /= d) * t;
      var tc = ts * t;
      return b+c*(4.257575757575761*tc*ts + -7.9545454545454595*ts*ts + 0.6818181818181834*tc + 4.46969696969697*ts + -0.4545454545454546*t);
  }
  </code></pre>