gulp-color-to-alpha

0.0.1 • Public • Published

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

Usage

In order to remove a color #ffffff from all images in images, use the following calls:

  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 test framework installed.

mocha spec

Licence

MIT

Package Sidebar

Install

npm i gulp-color-to-alpha

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • cmtt