|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
281 bytes
|
| Line | |
|---|
| 1 | import {scaleSequential} from "d3-scale";
|
|---|
| 2 | import {interpolateRgbBasisClosed} from "d3-interpolate";
|
|---|
| 3 | import colors from "./colors.js";
|
|---|
| 4 |
|
|---|
| 5 | export default function(range) {
|
|---|
| 6 | var s = scaleSequential(interpolateRgbBasisClosed(colors(range))).clamp(true);
|
|---|
| 7 | delete s.clamp;
|
|---|
| 8 | return s;
|
|---|
| 9 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.