UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

17 lines (16 loc) 656 B
/** * * @param htmlColor, for example "00ff00" or "#00ff00" - green * @param opacity, value from 0 to 1 * @returns rgbColor, for example "0xff00ff00" - green */ export declare const convertColor: (htmlColor: string, opacity?: number) => string; /** * * Converts individual R,G, and B components to HEX Color * @param r, red component where its value is from 0 to 1 * @param g, green component where its value is from 0 to 1 * @param b, blue component where its value is from 0 to 1 * @returns argbColor, for example "0xff00ff00" - green */ export declare const convertRgbToHexColor: (r: number, g: number, b: number) => string;