@wuxh/utils
    Preparing search index...

    Function toRGBObject

    • rgb()颜色字符串转换为具有每种颜色值的对象

      Parameters

      • rgbStr: string

        rgb 字符串 e.g. rgb(255, 255, 255)

      Returns RGBObject

      具有每种颜色值的对象

      toRGBObject('rgb(255, 255, 255)');  // { red: '255', green: '255', blue: '255' }