• Check if the string is a rgb or rgba color.

    Parameters

    • str: string
    • Optional includePercentValues: boolean

      If you don't want to allow to set rgb or rgba values with percents, like rgb(5%,5%,5%), or rgba(90%,90%,90%,.3), then set it to false. (defaults to true)

    Returns boolean

Generated using TypeDoc