Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
920 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import { LchaColor } from "../types";
|
---|
| 2 | import { Plugin } from "../extend";
|
---|
| 3 | declare module "../colord" {
|
---|
| 4 | interface Colord {
|
---|
| 5 | /**
|
---|
| 6 | * Converts a color to CIELCH (Lightness-Chroma-Hue) color space and returns an object.
|
---|
| 7 | * https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
|
---|
| 8 | * https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_model
|
---|
| 9 | */
|
---|
| 10 | toLch(): LchaColor;
|
---|
| 11 | /**
|
---|
| 12 | * Converts a color to CIELCH (Lightness-Chroma-Hue) color space and returns a string.
|
---|
| 13 | * https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lch()
|
---|
| 14 | */
|
---|
| 15 | toLchString(): string;
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 | /**
|
---|
| 19 | * A plugin adding support for CIELCH color space.
|
---|
| 20 | * https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
|
---|
| 21 | * https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_model
|
---|
| 22 | */
|
---|
| 23 | declare const lchPlugin: Plugin;
|
---|
| 24 | export default lchPlugin;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.