• Gets a CSS style string from a IRgb object and opacity value

    Parameters

    • color: IRgb

      the IRgb input color

    • Optional opacity: number

      the opacity value

    Returns string

    the CSS style string