1 for x in `seq 0 100`; do
4 b=$((33 + $x * 20 / 9))
8 -fill "rgb($b,$b,$b)" \
9 -draw "rectangle 0,0 63,63" \
10 -draw "rectangle 64,64 127,127" \
12 -font "Bitstream-Vera-Sans-Bold" \
15 -draw "text -1,-1 '$x%'" \
16 -draw "text 0,-1 '$x%'" \
17 -draw "text 1,-1 '$x%'" \
18 -draw "text -1,0 '$x%'" \
19 -draw "text 1,0 '$x%'" \
20 -draw "text -1,1 '$x%'" \
21 -draw "text 0,1 '$x%'" \
22 -draw "text 1,1 '$x%'" \
24 -draw "text 0,0 '$x%'" \
26 pamtotga -mono -norle > "alpha_$nnn.tga"
28 textures/alphamod/alpha_$nnn
37 q3map_alphaMod const ${nnn%??}.${nnn#?}
40 done > ../../scripts/alphamod.shader