Git Product home page Git Product logo

sprite's Introduction

sprite

Sprite is an ncurses-based sprite editor. You can use it to create and share pixel art.

By default, sprite sets up a 16x16 pixel canvas. If you'd like a larger 32x32 pixel canvas, start sprite with the -e flag. If your terminal is not large enough to fit a 32x32 canvas, it will use a 16x16 canvas instead. If you'd like a smaller 8x8 pixel canvas, start sprite with the -s flag.

Most terminals do not have 1:1 square character cells. This may cause the canvas to have a different aspect ratio than expectations. PNG export does create standard 1:1 square pixels; exported images will look correct.

Save file format

Images are saved as a flat text file, one pixel per line, in the form

y,x,color

Color is an index number from 0-255 that matches XTerm color. Only pixels with color are saved; transparent pixels are left out. The .spr and .txt file extensions are used by convention but any file extension can be used for save files.

Images can be exported to PNG, but sprite is not able to open PNGs, so please save images rather than export if you want to work on them over multiple sessions. The .png file extension is recommended for export; sprite does not add the file extension automatically when exporting.

Requirements

You need ncurses with 256 color support. While it will work with fewer than 256 colors it will not be as good.

You also need libpng for PNG export support.

Building

Just run make.

Remove -DHAVE_STRTONUM if your system needs the strtonum(3) function.

Remove -DHAVE_GETPROGNAME if your system needs the getprogname(3) function.

License

ISC License. See LICENSE for details.

sprite's People

Contributors

ibara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.