https://github.com/dnbard/gulp-hexsquare
Convert hex textures to square
https://github.com/dnbard/gulp-hexsquare
Last synced: 11 months ago
JSON representation
Convert hex textures to square
- Host: GitHub
- URL: https://github.com/dnbard/gulp-hexsquare
- Owner: dnbard
- Created: 2014-12-29T21:01:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-29T21:28:32.000Z (over 11 years ago)
- Last Synced: 2025-05-27T12:15:39.327Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# gulp-hexsquare
Gulp plugin to conver hex textures to square

## Install
First download and install [GraphicsMagick](http://www.graphicsmagick.org/) or [ImageMagick](http://www.imagemagick.org/).
```sh
$ npm install --save-dev gulp-hexsquare
```
## Usage
```js
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.
```js
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](https://github.com/dnbard)