1.0.5 • Published 3 years ago

@simoal17/buffocolor v1.0.5

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 alpha value applied.

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

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

ParamDescription
hexColorThe hex color code to convert to a contrasting color.
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago