1.1.0 • Published 10 years ago
to-color v1.1.0
toColor
install
npm install to-colorAPI
toColor
Given an arbitrary string, create a rgba color of a specified opacity to identify it visually.
Parameters
strstringany arbitrary stringopacitynumberan opacity value from 0 to 1
Examples
toColor('tom') //= 'rgba(187,153,68,0.75)'Returns string output color