Giter Club home page Giter Club logo

factorio-spritter's Introduction

actions status release ko-fi

Spritter

A simple CLI tool to combine individual sprites into spritesheets for factorio.

Usage

~$ spritter help
Spritesheet generator for factorio

Usage: spritter <COMMAND>

Commands:
  spritesheet  Generate sprite sheets from a folder of images
  icon         Generate a mipmap icon from a folder of images
  help         Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Spritesheet

~$ spritter help spritesheet
Generate sprite sheets from a folder of images

Usage: spritter spritesheet [OPTIONS] <SOURCE> <OUTPUT>

Arguments:
  <SOURCE>  Folder containing the individual sprites
  <OUTPUT>  Output folder

Options:
  -l, --lua
          Enable lua output generation
  -p, --prefix <PREFIX>
          Prefix to add to the output file name [default: ]
  -r, --recursive
          Recursive search for images. Each folder will be a separate sprite sheet
  -t, --tile-resolution <TILE_RESOLUTION>
          Resolution of the input sprites in pixels / tile [default: 32]
      --hr
          Set when the output file should be considered to be HR (8k x 8k resolution limit).
          When set the tile resolution will be set to 64 unless specified otherwise.
      --no-crop
          Set when the sprites should not be cropped
  -a, --crop-alpha <CROP_ALPHA>
          Sets the max alpha value to consider a pixel as transparent [0-255].
          Use a higher value in case your inputs have slightly transparent pixels and don't crop nicely. [default: 0]
  -s, --scale <SCALE>
          Set a scaling factor to rescale the used sprites by.
          Values < 1.0 will shrink the sprites. Values > 1.0 will enlarge them. [default: 1]
      --scale-filter <SCALE_FILTER>
          The scaling filter to use when scaling sprites [default: catmull-rom] [possible values: nearest, triangle, catmull-rom, gaussian, lanczos3]

Icon

~$ spritter help icon
Generate a mipmap icon from a folder of images

The individual images are used as the respective mip levels and combined into a single image

Usage: spritter icon [OPTIONS] <SOURCE> <OUTPUT>

Arguments:
  <SOURCE> Folder containing the individual sprites
  <OUTPUT> Output folder

Options:
  -l, --lua
          Enable lua output generation
  -p, --prefix <PREFIX>
          Prefix to add to the output file name

factorio-spritter's People

Contributors

fgardt avatar dependabot[bot] avatar

Stargazers

 avatar  avatar ThelianTech avatar Malcolm Riley avatar Bartłomiej Patyk avatar MrNekuromu avatar Michelle Szinger avatar

Watchers

 avatar

factorio-spritter's Issues

Length of the row

Hello! Could you please add ability to specify number of sprites in the row when generating spritesheet. By default it generates exactly 15 sprites in the row. But character animations, for instance, require 22 sprites in a row. That would be much appreciated.

Force single sheet mode

Force to fit everything into 1 file for prototypes that don't have the filenames property (only RotatedSprite and RotatedAnimation allow multiple files).

-> split frames into multiple sub frames that need to be layered together with a offset shift

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.