UNPKG
viridis
Version:
latest (1.4.2)
1.4.2
1.4.1
1.4.0
1.3.1
1.3.0
1.2.1
1.2.0
1.1.8
1.1.7
1.1.6
1.1.5
Color gradients for data visualization
npm.nicfv.com
nicfv/npm
viridis
/
types
/
lib.d.ts
10 lines
(9 loc)
•
192 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import { HSL, RGB }
from
'./types'
;
/** * Convert RGB to HSL */
export
declare
function
rgb2hsl
(
rgb: RGB
):
HSL
;
/** * Convert HSL to RGB */
export
declare
function
hsl2rgb
(
hsl: HSL
):
RGB
;