UNPKG

@tsports/go-colorful

Version:

A TypeScript port of the go-colorful package for working with colors

23 lines 1.52 kB
/** * Palette generation functions */ import { type Color } from './color'; import { type RandInterface } from './rand'; export declare const FastHappyPaletteWithRand: (colorsCount: number, rand: RandInterface) => Color[]; export declare const FastHappyPalette: (colorsCount: number) => Color[]; export declare const HappyPaletteWithRand: (colorsCount: number, rand: RandInterface) => [Color[], Error | null]; export declare const HappyPalette: (colorsCount: number) => [Color[], Error | null]; export declare const FastWarmPaletteWithRand: (colorsCount: number, rand: RandInterface) => Color[]; export declare const FastWarmPalette: (colorsCount: number) => Color[]; export declare const WarmPaletteWithRand: (colorsCount: number, rand: RandInterface) => [Color[], Error | null]; export declare const WarmPalette: (colorsCount: number) => [Color[], Error | null]; export interface SoftPaletteSettings { checkColor?: (l: number, a: number, b: number) => boolean; iterations: number; manySamples: boolean; } export declare const SoftPaletteExWithRand: (colorsCount: number, settings: SoftPaletteSettings, rand: RandInterface) => [Color[], Error | null]; export declare const SoftPaletteEx: (colorsCount: number, settings: SoftPaletteSettings) => [Color[], Error | null]; export declare const SoftPaletteWithRand: (colorsCount: number, rand: RandInterface) => [Color[], Error | null]; export declare const SoftPalette: (colorsCount: number) => [Color[], Error | null]; //# sourceMappingURL=palettes.d.ts.map