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 -eflag.If your terminal is not large enough to fit a 32x32 canvas, it willuse a 16x16 canvas instead.If you'd like a smaller 8x8 pixel canvas, start sprite with the -sflag.
Most terminals do not have 1:1 square character cells.This may cause the canvas to have a different aspect ratio thanexpectations.PNG export does create standard 1:1 square pixels; exported imageswill look correct.
Images are saved as a flat text file, one pixel per line, in the form
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 fileextension 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 themover multiple sessions. The .png file extension is recommended forexport; sprite does not add the file extension automatically whenexporting.
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.
Just runmake
.
Remove-DHAVE_STRTONUM
if your system needs the strtonum(3) function.
Remove-DHAVE_GETPROGNAME
if your system needs the getprogname(3)function.
ISC License.SeeLICENSE
for details.