D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
zanarmstrong
Full window
Github gist
Color Interpolation test
<!-- note: this code is one of the first things I wrote in D3... which I just moved from jsfiddle to github, so there may be weirdness is how things are implemented --> <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Color Interpolation</title> <link href='https://fonts.googleapis.com/css?family=Oxygen:300normal,400normal,700normal' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="colorInterpolation.css"> <body> <h2>Interpolating Between Colors</h2> <p id="overview"></p> <div id="forSVG"></div> <p>To try different colors, use the jsfiddle example <a href="https://fiddle.jshell.net/HvTcN/6/">here</a>.</p> <script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script> <script src="colorInterpolation.js"></script> </body>
https://d3js.org/d3.v3.min.js