Function colorToRgba

  • 颜色透明度 十六进制或者rgb格式的颜色值(不能接受命名式颜色格式,比如white),返回此颜色的rgba格式值

    Example

    colorToRgba('#000000', 0.35)
    

    Parameters

    • color: string

      只能hex或者rgba格式

    • alpha: number = 0.3

    Returns string

Generated using TypeDoc