颜色透明度 十六进制或者rgb格式的颜色值(不能接受命名式颜色格式,比如white),返回此颜色的rgba格式值
colorToRgba('#000000', 0.35) Copy
colorToRgba('#000000', 0.35)
只能hex或者rgba格式
Generated using TypeDoc
颜色透明度 十六进制或者rgb格式的颜色值(不能接受命名式颜色格式,比如white),返回此颜色的rgba格式值
Example