hwb.d.ts 820 B

1234567891011121314151617181920212223
  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;