0.0.1 • Published 9 years ago

gulp-color-to-alpha v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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