1.0.2 • Published 2 years ago

hex-blender v1.0.2

Weekly downloads
-
License
WTFPL
Repository
-
Last release
2 years ago

hex-blender

a library for finding out the hex value between two hex values.

🤤 usage

to install the library as a dependency to your project, run

yarn add hex-blender
# or, according to your preference
npm install hex-blender

import the library in your project like below, and you can get started using it directly.

// simply import the library
import hexBlend from 'hex-blender'
// and then ... just use it like you would any library
const getMiddleColour = (colourOne, colourTwo) => {
	return hexBlend(colourOne, colourTwo, 4, 2)
}
// adding `#` or not is optional
getMiddleColour('ff0000', '#00ff00') // '#7f7f00'
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago