source:
node_modules/d3-interpolate/src/hue.js@
e4c61dd
| Last change on this file since e4c61dd was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 178 bytes | |
| Rev | Line | |
|---|---|---|
| [e4c61dd] | 1 | import {hue} from "./color.js"; |
| 2 | ||
| 3 | export default function(a, b) { | |
| 4 | var i = hue(+a, +b); | |
| 5 | return function(t) { | |
| 6 | var x = i(t); | |
| 7 | return x - 360 * Math.floor(x / 360); | |
| 8 | }; | |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
