mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 11:50:15 +08:00
Add color component fields for other color spaces besides RGB
This commit is contained in:
Vendored
+36
@@ -1414,6 +1414,18 @@ declare module D3 {
|
||||
}
|
||||
|
||||
export interface HSLColor extends Color{
|
||||
/**
|
||||
* hue
|
||||
*/
|
||||
h: number;
|
||||
/**
|
||||
* saturation
|
||||
*/
|
||||
s: number;
|
||||
/**
|
||||
* lightness
|
||||
*/
|
||||
l: number;
|
||||
/**
|
||||
* convert from HSL to RGB.
|
||||
*/
|
||||
@@ -1421,6 +1433,18 @@ declare module D3 {
|
||||
}
|
||||
|
||||
export interface LABColor extends Color{
|
||||
/**
|
||||
* lightness
|
||||
*/
|
||||
l: number;
|
||||
/**
|
||||
* a-dimension
|
||||
*/
|
||||
a: number;
|
||||
/**
|
||||
* b-dimension
|
||||
*/
|
||||
b: number;
|
||||
/**
|
||||
* convert from LAB to RGB.
|
||||
*/
|
||||
@@ -1428,6 +1452,18 @@ declare module D3 {
|
||||
}
|
||||
|
||||
export interface HCLColor extends Color{
|
||||
/**
|
||||
* hue
|
||||
*/
|
||||
h: number;
|
||||
/**
|
||||
* chroma
|
||||
*/
|
||||
c: number;
|
||||
/**
|
||||
* luminance
|
||||
*/
|
||||
l: number;
|
||||
/**
|
||||
* convert from HCL to RGB.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user