@fantasy-color/from-rgba
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@fantasy-color/from-rgba

Parse a CSS RGBA string into a RGBA object.

type fromRgba = (rgb: string) => RGBA

Example usage:

import fromRgba from '@fantasy-color/from-rgba'

fromRgba('rgb(0, 250, 10, 0.6)')
// { red: 0, green: 250, blue: 10, alpha: 0.6 }

Readme

Keywords

none

Package Sidebar

Install

npm i @fantasy-color/from-rgba

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

5.81 kB

Total Files

9

Last publish

Collaborators

  • ijigg
  • moria.am
  • atilaz
  • gideon.gur
  • irminakacz
  • fernando.3
  • xaviervia
  • psxcode
  • deepsweet