color-alpha
Change alpha value of a color string
Last updated 6 years ago by dfcreative .
MIT · Repository · Bugs · Original npm
$ cnpm install color-alpha 
SYNC missed versions from official npm registry.

color-alpha unstable Build Status

Change alpha of a color without requiring huge color libs.

npm install color-alpha

const α = require('color-alpha');
α('white', .4); // 'rgba(255,255,255,.4)'

Related

color-interpolate — interpolate color over palette, colormap or gradient.

Current Tags

  • 1.1.2                                ...           latest (5 years ago)

2 Versions

  • 1.1.2                                ...           5 years ago
  • 1.0.4                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org