rudimentaire

This commit is contained in:
tth 2022-07-07 00:05:53 +02:00
parent 4427fe9093
commit 6455be4d5b
3 changed files with 27 additions and 1 deletions

4
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.o
libtthimage.a
cscope.out
Lib/foo
Lib/testtga
@ -9,8 +10,9 @@ Lib/t_png
Lib/t_t16x24
Lib/testbmp
Tools/genplot2
Tests/*.tga
Tools/genplot2
Tools/tga_alpha
Tools/tga_cadre
Tools/tga_combine

View File

@ -2,3 +2,7 @@
Tester, c'est douter.
## Mais encore ?
Dans le répertoire `Lib/` il y a un `essais.c` assez prometeur.

20
Tests/a.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
SRC="/tmp/src.tga"
BW="/tmp/bw.tga"
DST="foo.tga"
../Tools/tga_tools version
../Tools/tga_tools mk_rgb $SRC 800 600 30 40 50
../Tools/tga_effects $SRC noise $SRC 255
../Tools/tga_effects $SRC noise $SRC 255
# display $SRC
../Tools/tga_effects $SRC gray $BW
# display $BW
../Tools/tga_combine $SRC $BW circle0 $DST 0
display $DST