rgba-string
v1.0.7
Published
generate rgba color strings
Downloads
11
Readme
rgba-string
this function generates rgba color strings from numeric input
Getting started
Install rgba-string
using npm.
npm install rgba-string --save
ES6, CommonJS, and UMD builds are available with each distribution.
example:
import { rgba } from 'rgba-string'
const red = rgba(0xd32e2d) // 'rgba(211, 46, 45, 1)'
const red30 = rgba(0xd32e2d, 0.3) // 'rgba(211, 46, 45, 0.3)'