source:
node_modules/d3-interpolate/src/hue.js
| Last change on this file was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 178 bytes | |
| Line | |
|---|---|
| 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.
