Datalayer VS Code Extension - v0.0.17
    Preparing search index...

    Function withOpacity

    • Adds opacity to a color value by appending an alpha channel.

      Parameters

      • color: string

        Base color in hex or rgb format.

      • opacity: number

        Opacity value between 0 and 1.

      Returns string

      Hex color string with the opacity alpha channel appended.