-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Layton
committed
Oct 31, 2019
1 parent
7dd1a81
commit eaa9b45
Showing
5 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
declare module 'hsluv' { | ||
export type ColorTuple = [number, number, number]; | ||
export function hsluvToRgb(hsluv: ColorTuple): ColorTuple; | ||
export function rgbToHsluv(rgb: ColorTuple): ColorTuple; | ||
export function hpluvToRgb(hpluv: ColorTuple): ColorTuple; | ||
export function rgbToHpluv(rgb: ColorTuple): ColorTuple; | ||
export function hsluvToHex(hsluv: ColorTuple): string; | ||
export function hexToHsluv(hex: string): ColorTuple; | ||
export function hpluvToHex(hpluv: ColorTuple): string; | ||
export function hexToHpluv(hex: string): ColorTuple; | ||
export function lchToHpluv(lch: ColorTuple): ColorTuple; | ||
export function hpluvToLch(hpluv: ColorTuple): ColorTuple; | ||
export function lchToHsluv(lch: ColorTuple): ColorTuple; | ||
export function hsluvToLch(hsluv: ColorTuple): ColorTuple; | ||
export function lchToLuv(lch: ColorTuple): ColorTuple; | ||
export function luvToLch(luv: ColorTuple): ColorTuple; | ||
export function xyzToLuv(xyz: ColorTuple): ColorTuple; | ||
export function luvToXyz(luv: ColorTuple): ColorTuple; | ||
export function xyzToRgb(xyz: ColorTuple): ColorTuple; | ||
export function rgbToXyz(rbg: ColorTuple): ColorTuple; | ||
export function lchToRgb(lch: ColorTuple): ColorTuple; | ||
export function rgbToLch(rgb: ColorTuple): ColorTuple; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters