source: trip-planner-front/node_modules/colord/plugins/lab.d.ts

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 782 bytes
Line 
1import { LabaColor, AnyColor } from "../types";
2import { Plugin } from "../extend";
3declare module "../colord" {
4 interface Colord {
5 /**
6 * Converts a color to CIELAB color space and returns an object.
7 * The object always includes `alpha` value [0, 1].
8 */
9 toLab(): LabaColor;
10 /**
11 * Calculates the perceived color difference for two colors according to
12 * [Delta E2000](https://en.wikipedia.org/wiki/Color_difference#CIEDE2000).
13 * Returns a value in [0, 1] range.
14 */
15 delta(color?: AnyColor | Colord): number;
16 }
17}
18/**
19 * A plugin adding support for CIELAB color space.
20 * https://en.wikipedia.org/wiki/CIELAB_color_space
21 */
22declare const labPlugin: Plugin;
23export default labPlugin;
Note: See TracBrowser for help on using the repository browser.