UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

17 lines (16 loc) 577 B
import type { ColorArray } from './index.js'; /** ColorDefinition - [encoding, colors] */ export type ColorDefinition = [encoding: string, colors: ColorArray]; /** * There are four types of strings to parse: * - color names: 'red', 'black', etc * - Hex: #ededed * - lastly type encodings: * - * rgb(255, 255, 255) * - * rgba(255, 255, 255, 255) * - * hsv(180, 0.9, 0.7843137254901961) * - * hsva(180, 0.9, 0.7843137254901961, 1) * @param input - the string to parse * @returns the parsed color */ export declare function colorParser(input: string): ColorDefinition;