1.0.3 • Published 3 years ago
@albamyrtaj/colorsearch v1.0.3
��## Functions
setOpacity(hexColor, opacity)
Set the opacity of a hex color
Kind: global function
Returns: The hex color with the opacity applied.
Param | Description |
---|---|
hexColor | the hex color code without the alpha value. |
opacity | The opacity of the color. This is a value between 0 and 1. |
fromColorStringToRGBA(stringColor)
Convert a string color to an RGBA color
Kind: global function
Returns: The RGBA values of the color.
Param | Description |
---|---|
stringColor | The color string to convert. |
getContrastingColor(hexColor)
Given a hex color, return the color that would be the opposite of that color
Kind: global function
Returns: a hex color code with the opposite color.
Param | Description |
---|---|
hexColor | The hex color to convert to a contrasting color. |