UNPKG

color-theme-generator

Version:

Generates random color themes that are based in color theory.

30 lines (29 loc) 808 B
import { Color } from './Color.js'; import { ColorThemes } from '../enums/ColorThemes.js'; export declare class ColorThemeData { #private; constructor(colorTheme: ColorThemes, colors: Color[]); /** * The colors in the theme. * * @returns An array of the colors. */ get colorsInTheme(): Color[]; /** * The name of the theme. */ get colorTheme(): ColorThemes; get numberOfColorsInTheme(): number; /** * Sorts the colors in the theme by hue in ascending order. */ sortColorsByHue(): void; /** * Sorts the colors in the theme by saturation in ascending order. */ sortColorsBySaturation(): void; /** * Sorts the colors in the theme by lightness in ascending order. */ sortColorsByLightness(): void; }