Function getRGBA

  • Converts a CSS color string into RGBA format.

    Parameters

    • color: string

      Color in any CSS format.

    • alpha: number = 1

      Alpha value for produced color.

    Returns string

    Color in RGBA format.