color-alpha
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

color-alpha stable build size

Change alpha of a color.

npm install color-alpha

import α from 'color-alpha'
α('white', .4); // 'rgba(255,255,255,.4)'

Input color is parsed with color-parse package.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i color-alpha

    Weekly Downloads

    304,310

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.24 kB

    Total Files

    6

    Last publish

    Collaborators

    • dfcreative
    • dy