0.1.1 • Published 9 years ago

gulp-hexsquare v0.1.1

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

gulp-hexsquare

Gulp plugin to conver hex textures to square

example

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