geopf-extensions-openlayers
    Preparing search index...

    Variable ColorUtils

    ColorUtils: {
        arrayToHex: (values: any[]) => any;
        arrayToRgba: (values: any[]) => string;
        hex: (number: number) => string;
        hexToRgba: (hex: string, opacity: number) => string;
        isHex: (value: any) => boolean;
        isRGB: (value: any) => boolean;
        num: (hexa: any) => number;
        rgbaToHex: (rgba: string) => any;
    } = ...

    Type Declaration

    • FunctionarrayToHex: (values: any[]) => any

      Converts an array ([255,255,255,1]) to #RRGGBBAA

      arrayToHex

    • FunctionarrayToRgba: (values: any[]) => string

      Converts an array ([255,255,255,1]) to rgba string

      arrayToRgba

    • hex: (number: number) => string

      Number to hex conversion

    • FunctionhexToRgba: (hex: string, opacity: number) => string

      Converts hex color and opacity value to rgba string. (Code adapted from : http://stackoverflow.com/a/5624139)

      hexToRgba

    • isHex: (value: any) => boolean

      Determine if value is a correct hexa color.

    • isRGB: (value: any) => boolean

      Determine if value is a correct rgba color.

    • num: (hexa: any) => number

      Hexa to number conversion

    • FunctionrgbaToHex: (rgba: string) => any

      Converts rgba string to #RRGGBBAA (Code adapted from : https://gist.github.com/mstssk/afda4ce9e5c335fd79cd)

      rgbaToHex