import Tinycolor2 from 'tinycolor2'; import { ColorInput } from 'tinycolor2'; export interface IColor { alpha: number; blue: number; green: number; red: number; } /** * 转换 color * @param { IColor } color * @returns { Tinycolor2.Instance} color */ export declare function getColor(color: IColor): Tinycolor2.Instance; /** * 色彩调色板 * @param color 颜色 * @param index 级别 */ export declare function colorPalette(color: ColorInput, index: number): Tinycolor2.Instance; /** * 褪色 * @param color * @param amount 它包含0 - 100%之间的百分比 */ export declare function fade(color: ColorInput, amount: number): Tinycolor2.Instance;