rgba-string

1.0.7 • Public • Published

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)'
 

Readme

Keywords

Package Sidebar

Install

npm i rgba-string

Weekly Downloads

2

Version

1.0.7

License

MIT

Last publish

Collaborators

  • kaodev