Skip to content

Home > sic-util > get_multiple_color

get_multiple_color() function

该函数将颜色转成一种颜色的多种透明度的

Signature:

typescript
get_multiple_color: (value: string | null, opacity: number) => string

Parameters

Parameter

Type

Description

value

string | null

rgb或者十六进制

opacity

number

透明度

**Returns:**

string

十六进制颜色代码

Released under the MIT License.