1 unstable release

0.1.0 Nov 23, 2022

#842 in Images

Custom license

20KB
574 lines

tep lets you make little pixel art images in a file and then compile them to images. See:

w: #FFF
b: #000

w b w b w b
b w b w b w
w b w b w b
b w b w b w
w b w b w b
b w b w b w

The spaces are optional but let it stay at least a little more square than it could be in whatever font this is than I'm using.

Install it with

cargo install tepimg

or clone it down and

cargo install --path tep

Usage

tepimg tests/standard.tep tests/standard.png

Or, if you want to share a palette between images, you can pass it in separate. The palette provided with -p will be used instead of any palette in the image.

tepimg -p tests/standard_palette tests/standard.tep tests/standard.png

Valid colour definitions

short gray: #1 becomes #111111
long gray: #12 becomes #121212
short rgb: #abc becomes #aabbcc
short rgba: #abcd becomes #aabbccdd
long rgb: #abcdef
long rgba: #abcdef12
rgb(...) and rgba(...) with bytes. So like, rgb(51,170,136)

Dependencies

~1.7–2.4MB
~42K SLoC