gulp-hexsquare
v0.1.1
Published
Gulp plugin to conver hex textures to square
Downloads
1
Readme
gulp-hexsquare
Gulp plugin to conver hex textures to square
Install
First download and install GraphicsMagick or ImageMagick.
$ npm install --save-dev gulp-hexsquare
Usage
var gulp = require('gulp');
var hexsquare = require('gulp-hexsquare');
gulp.task('default', function () {
return gulp.src('src/file.ext')
.pipe(hexsquare({
size: {
width: 72,
height: 72
}
}))
.pipe(gulp.dest('dist'));
});
API
hexsquare(options)
options
resize
Type: object
Optional
Square texture will be resized to given dimentionals.
gulp.task('default', function () {
return gulp.src('src/file.ext')
.pipe(hexsquare({
size: {
width: 72,
height: 72
}.
resize: {
width: 32,
height: 32
}
}))
.pipe(gulp.dest('dist'));
});
License
MIT © Alex Bardanov