@senx/warpview
Version:
WarpView Elements
58 lines • 1.96 kB
TypeScript
export declare enum Colors {
COHESIVE = "COHESIVE",
COHESIVE_2 = "COHESIVE_2",
BELIZE = "BELIZE",
VIRIDIS = "VIRIDIS",
MAGMA = "MAGMA",
INFERNO = "INFERNO",
PLASMA = "PLASMA",
YL_OR_RD = "YL_OR_RD",
YL_GN_BU = "YL_GN_BU",
BU_GN = "BU_GN",
WARP10 = "WARP10",
NINETEEN_EIGHTY_FOUR = "NINETEEN_EIGHTY_FOUR",
ATLANTIS = "ATLANTIS",
DO_ANDROIDS_DREAM = "DO_ANDROIDS_DREAM",
DELOREAN = "DELOREAN",
CTHULHU = "CTHULHU",
ECTOPLASM = "ECTOPLASM",
T_MAX_400_FILM = "T_MAX_400_FILM"
}
export declare class ColorLib {
static color: {
COHESIVE: string[];
COHESIVE_2: string[];
BELIZE: string[];
VIRIDIS: string[];
MAGMA: string[];
INFERNO: string[];
PLASMA: string[];
YL_OR_RD: string[];
YL_GN_BU: string[];
BU_GN: string[];
WARP10: string[];
NINETEEN_EIGHTY_FOUR: string[];
ATLANTIS: string[];
DO_ANDROIDS_DREAM: string[];
DELOREAN: string[];
CTHULHU: string[];
ECTOPLASM: string[];
T_MAX_400_FILM: string[];
MATRIX: string[];
CHARTANA: string[];
};
static getColor(i: number, scheme: string): any;
static getColorGradient(id: number, scheme: string): (string | number)[][];
static getBlendedColorGradient(id: number, scheme: string, bg?: string): (string | number)[][];
static hexToRgb(hex: any): number[];
static transparentize(color: any, alpha?: number): string;
static generateTransparentColors(num: any, scheme: any): any[];
static hsvGradientFromRgbColors(c1: any, c2: any, steps: any): any[];
private static rgb2hsv;
private static hsvGradient;
private static hsv2rgb;
static rgb2hex(r: any, g: any, b: any): string;
static blend_colors(color1: any, color2: any, percentage: any): string;
static int_to_hex(num: number): string;
}
//# sourceMappingURL=color-lib.d.ts.map