UNPKG

@carto/airship-bridge

Version:

Airship bridge to other libs (CARTO VL, CARTO.js)

26 lines (25 loc) 596 B
import { RGBColor } from '../../types'; /** * Converts VL RGB Colors to hex * * @export * @param {RGBColor} color * @returns */ export declare function rgbToHex(color: RGBColor): string; /** * Converts VL RGB Colors to string color * * @export * @param {RGBColor} color * @returns string */ export declare function rgbaToString(color: RGBColor): string; /** * Converts colors to hex strings. If input is a string is assumed to be a valid HEX string. * * @export * @param {(RGBColor | string)} color * @returns */ export declare function toHex(color: RGBColor | string): string;