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:
797 bytes
|
Line | |
---|
1 | import { HwbaColor } from "../types";
|
---|
2 | import { Plugin } from "../extend";
|
---|
3 | declare module "../colord" {
|
---|
4 | interface Colord {
|
---|
5 | /**
|
---|
6 | * Converts a color to HWB (Hue-Whiteness-Blackness) color space and returns an object.
|
---|
7 | * https://en.wikipedia.org/wiki/HWB_color_model
|
---|
8 | */
|
---|
9 | toHwb(): HwbaColor;
|
---|
10 | /**
|
---|
11 | * Converts a color to HWB (Hue-Whiteness-Blackness) color space and returns a string.
|
---|
12 | * https://www.w3.org/TR/css-color-4/#the-hwb-notation
|
---|
13 | */
|
---|
14 | toHwbString(): string;
|
---|
15 | }
|
---|
16 | }
|
---|
17 | /**
|
---|
18 | * A plugin adding support for HWB (Hue-Whiteness-Blackness) color model.
|
---|
19 | * https://en.wikipedia.org/wiki/HWB_color_model
|
---|
20 | * https://www.w3.org/TR/css-color-4/#the-hwb-notation
|
---|
21 | */
|
---|
22 | declare const hwbPlugin: Plugin;
|
---|
23 | export default hwbPlugin;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.