~hidravfx-dev-team/hidravfx/trunk

« back to all changes in this revision

Viewing changes to test/test.sh

  • Committer: Laszlo.simon
  • Date: 2011-03-06 20:47:02 UTC
  • Revision ID: git-v1:6d6b3876e16b630ca1e50f5104ef12e7c2ea32b6
Distorsions added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
EFFECTS="none invert pitinvert"
4
 
          
5
 
cp temp.png test.png
6
 
convert test.png -endian LSB test.pfm
7
 
for i in $EFFECTS; 
8
 
do
9
 
  if [ ! -e test-$i-after.png ]
10
 
  then
11
 
    echo Testing $i command
12
 
    ../bin/hidravfx --cmd=$i --in=test.pfm --out=test-$i-after.pfm
13
 
    convert test-$i-after.pfm test-$i-after.png
14
 
  fi
15
 
done
16
 
 
17
 
BLENDINGS="allanon multiply bleach screen divide add sub diff "
18
 
BLENDINGS+="difference paralel darken lighten texture light "
19
 
BLENDINGS+="dark ekvivalence addSub pitagoras arctan exclusion "
20
 
BLENDINGS+="geomMean gammaDark gammaLight burn linearLight "
21
 
BLENDINGS+="colorDodge colorBurn pinLight hardLight softLight "
22
 
BLENDINGS+="vividLight overlay"
23
 
 
24
 
cp temp1.png blend-base.png
25
 
cp temp2.png blend-add.png
26
 
convert blend-base.png -endian LSB blend-base.pfm
27
 
convert blend-add.png -endian LSB blend-add.pfm
28
 
for i in $BLENDINGS ; 
29
 
do
30
 
  if [ ! -e blend-$i-after.png ]
31
 
  then
32
 
    echo Testing $i command
33
 
    ../bin/hidravfx --cmd=$i --in=blend-base.pfm --add=blend-add.pfm --out=blend-$i-after.pfm
34
 
    convert blend-$i-after.pfm blend-$i-after.png
35
 
  fi
36
 
done
37
 
 
38
 
rm *.pfm
 
 
b'\\ No newline at end of file'