gulp-hexsquare

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-hexsquare

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • dnbard