Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

ncurses-based sprite editor

License

NotificationsYou must be signed in to change notification settings

ibara/sprite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

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

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.SeeLICENSE for details.


[8]ページ先頭

©2009-2025 Movatter.jp