@antv/data-wizard
Version:
A js/ts library for data processing
39 lines (38 loc) • 786 B
TypeScript
import { BasicRandom } from './basic-random';
/**
*
* @public
*/
export interface RGBBaseOptions {
grayscale?: boolean;
min?: number;
max?: number;
minR?: number;
maxR?: number;
minG?: number;
maxG?: number;
minB?: number;
maxB?: number;
}
/**
* Generate RGB color.
* @param options - the params
*/
export declare function rgb(this: BasicRandom, options?: RGBBaseOptions): [number, number, number];
/**
* the params for hls color
* @public
*/
export interface HSLBaseOPtions {
minH?: number;
maxH?: number;
minS?: number;
maxS?: number;
minL?: number;
maxL?: number;
}
/**
* generate HSL color
* @param options
*/
export declare function hsl(this: BasicRandom, options?: HSLBaseOPtions): [number, string, string];