color-theme-generator
Version:
Generates random color themes that are based in color theory.
16 lines (15 loc) • 644 B
TypeScript
import { Color } from './Color.js';
import { ColorThemeFactory } from './ColorThemeFactory.js';
export declare abstract class MultiHueColorThemeFactory extends ColorThemeFactory {
#private;
protected numberOfMainColors: number;
constructor(numberOfMainColors: number);
protected setCalculateHueFunction(calculateHue: (hueIncrementFactor: number) => number): void;
/**
* Generates a set of colors in a color theme.
*
* @param numberOfColors - The number of colors to generate.
* @returns An array containing the colors as Color objects.
*/
protected getColors(numberOfColors: number): Color[];
}