@simoal17/buffocolor
v1.0.5
Published
I'm following a tutorial
Downloads
3
Readme
Functions
setOpacity(hexColor, opacity)
Set the opacity of a hex color
Kind: global function
Returns: The hex color with the alpha value 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(colorString)
Convert 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 RGBA. |
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 code to convert to a contrasting color. |