harmonies.d.ts 602 B

12345678910111213141516
  1. import { Plugin } from "../extend";
  2. export declare type HarmonyType = "analogous" | "complementary" | "double-split-complementary" | "rectangle" | "split-complementary" | "tetradic" | "triadic";
  3. declare module "../colord" {
  4. interface Colord {
  5. /**
  6. * Returns an array of harmony colors as `Colord` instances.
  7. */
  8. harmonies(type?: HarmonyType): Colord[];
  9. }
  10. }
  11. /**
  12. * A plugin adding functionality to generate harmony colors.
  13. * https://en.wikipedia.org/wiki/Harmony_(color)
  14. */
  15. declare const harmoniesPlugin: Plugin;
  16. export default harmoniesPlugin;