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

    Returns

    the CSS style string

    Parameters

    • color: IRgb

      the IRgb input color

    • Optional opacity: number

      the opacity value

    Returns string