GithubHelp home page GithubHelp logo

tile-tools's Introduction

About

GoDoc

Command-line tools to process tile set images

Provides tileslicer, tilejoiner, tilecutter and tileflipper commands.

Installation

go install github.com/martinlindhe/tile-tools/cmd/tileslicer@latest
go install github.com/martinlindhe/tile-tools/cmd/tilejoiner@latest
go install github.com/martinlindhe/tile-tools/cmd/tilecutter@latest
go install github.com/martinlindhe/tile-tools/cmd/tileflipper@latest

Usage - tileslicer

Slices input image into several tiles.

You have a tile map:

have

You want to slice it into equally sized tiles:

want

$ tileslicer 1.png --out ./parts --width 32 --height 32

Usage - tilejoiner

Combines all images in a folder into a new tile set

You have a bunch of equally sized tiles:

want

You want to combine them to a tile map:

have

$ tilejoiner ./parts --out 1.png --tiles-per-row 6

Usage - tilecutter

Keeps bottom 1/3:rd of input images

$ tilecutter --keep-bottom --one-third _tmp

Usage - tileflipper

Flip (mirror) input image

$ tileflipper _samples/ground.png --out flipped-ground-h.png --horizontal
$ tileflipper _samples/ground.png --out flipped-ground-v.png --vertical

License

Under MIT

tile-tools's People

Contributors

martinlindhe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.