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:
823 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import { AnyColor } from "../types";
|
---|
| 2 | import { Plugin } from "../extend";
|
---|
| 3 | declare module "../colord" {
|
---|
| 4 | interface Colord {
|
---|
| 5 | /**
|
---|
| 6 | * Produces a mixture of two colors through CIE LAB color space and returns a new Colord instance.
|
---|
| 7 | */
|
---|
| 8 | mix(color2: AnyColor | Colord, ratio?: number): Colord;
|
---|
| 9 | /**
|
---|
| 10 | * Generates a tints palette based on original color.
|
---|
| 11 | */
|
---|
| 12 | tints(count?: number): Colord[];
|
---|
| 13 | /**
|
---|
| 14 | * Generates a shades palette based on original color.
|
---|
| 15 | */
|
---|
| 16 | shades(count?: number): Colord[];
|
---|
| 17 | /**
|
---|
| 18 | * Generates a tones palette based on original color.
|
---|
| 19 | */
|
---|
| 20 | tones(count?: number): Colord[];
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 | /**
|
---|
| 24 | * A plugin adding a color mixing utilities.
|
---|
| 25 | */
|
---|
| 26 | declare const mixPlugin: Plugin;
|
---|
| 27 | export default mixPlugin;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.