https://github.com/cmtt/gulp-color-to-alpha
https://github.com/cmtt/gulp-color-to-alpha
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cmtt/gulp-color-to-alpha
- Owner: cmtt
- Created: 2015-02-21T14:25:05.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-21T20:33:12.000Z (over 11 years ago)
- Last Synced: 2025-02-05T19:34:22.613Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
gulp-color-to-alpha
===================
This is a plugin for the Gulp building system which removes a given color from the given set of images (see [color-to-alpha](http://cmtt.github.io/color-to-alpha)).
## Usage
In order to remove a color #ffffff from all images in images, use the following calls:
```js
var alpha = require('gulp-color-to-alpha');
gulp.src([
'images/**/*'
])
.pipe(alpha('#ffffff'))
.pipe(gulp.dest('output'));
```
Color must be a hexdecimal string or an RGB array ([0,0,0]).
## Running the unit tests
You will need to have the [Mocha](http://mochajs.org/) test framework installed.
```js
mocha spec
```
# Licence
MIT