@companion-module/base
    Preparing search index...

    Function splitHex

    • Takes a color value and returns a string with Hex notation of that color the color can be either the Companion color number or a CSS compatible color string if input color has no alpha or alpha of 1, return will be in format '#rrggbb', else '#rrggbbaa'

      Parameters

      • color: string | number

      Returns string