1.1.0 • Published 9 years ago

to-color v1.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

toColor

build status

install

npm install to-color

API

toColor

Given an arbitrary string, create a rgba color of a specified opacity to identify it visually.

Parameters

  • str string any arbitrary string
  • opacity number an opacity value from 0 to 1

Examples

toColor('tom') //= 'rgba(187,153,68,0.75)'

Returns string output color

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago