1.0.3 • Published 3 years ago

@albamyrtaj/colorsearch v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

��## Functions

setOpacity(hexColor, opacity)

Set the opacity of a hex color

Kind: global function
Returns: The hex color with the opacity applied.

ParamDescription
hexColorthe hex color code without the alpha value.
opacityThe 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.

ParamDescription
stringColorThe 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.

ParamDescription
hexColorThe hex color to convert to a contrasting color.