blob: 7784df5d3cd8d120a2e5fad2ccdfb425c5303359 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# SpriteSheet Animation Preview
Requires:
* Python 3
* tinker
* PIL (with ImageTk)
In Debian:
```
sudo apt install python3-tk python3-pil python3-pil.imagetk
```
Use it with:
```
sspreview spritesheet.png
```
<img src="https://git.usebox.net/sspreview/plain/example.png" alt="Example" style="width:auto;">
Tips:
* in "scale", provide two numbers separated with a comma in case you want a different scale factor for x and y (e.g. `20,10`)
* if your spritesheet changes, press `Update` and it will reload the image
Caveats:
* my first tinker app
* errors (like invalid input) will terminate the app with a message in `stderr`
* when parameters are changed, press `Update` for them to take effect
This code is GPL licensed, see for details [gpl-3.0.txt](gpl-3.0.txt).
|