1.0.2 • Published 3 years ago
@fubaars/color-utility v1.0.2
��## Functions
setOpacity(hexColor, opacity) ���
Set the opacity of a hex color
Kind: global function
Returns: The hex color with the opacity added to the end.
Param | Description |
---|---|
hexColor | the hex color code without the # symbol |
opacity | a number between 0 and 1 |
fromColorStringToRGBA(colorString) ���
Converts a color string to an rgba string
Kind: global function
Returns: The RGBA values of the color.
Param | Description |
---|---|
colorString | The color string to convert to an RGBA value. |
getContrastingColor(hexColor) ���
Given a hex color, return the color that would be the best contrast
Kind: global function
Returns: a string.
Param | Description |
---|---|
hexColor | the hex color code to convert to a contrasting color. |