make it more flexible

This commit is contained in:
Marcus (DeltaLima) 2023-12-30 17:21:30 +01:00
parent 827930d3e7
commit dc7cdd9a7d

View file

@ -143,9 +143,9 @@ draw_pixmap() {
sx=0 sx=0
sy=0 sy=0
shuf_xy() { shuf_xy() {
echo "OFFSET $(shuf -i 0-1760 -n 1) $(shuf -i 0-919 -n 1)" #echo "OFFSET $(shuf -i 0-1760 -n 1) $(shuf -i 0-919 -n 1)"
#echo "OFFSET $(shuf -i 0-1760 -n 1) 919" #echo "OFFSET $(shuf -i 0-1760 -n 1) 919"
#echo "OFFSET 1200 420" echo "OFFSET 1200 420"
#echo > /dev/null #echo > /dev/null
#~ echo "OFFSET $sx $sy" #~ echo "OFFSET $sx $sy"
@ -157,27 +157,32 @@ shuf_xy() {
} }
floot() { floot() {
#~ for i in 1 2 if [ "$FNAME" == "winketuxS" ]
#~ do then
#LOL[$i]="OFFSET 1 200" LOL[1]="$(cat ${FNAME}1.pixlist | shuf)"
#LOL[$i]="OFFSET $(shuf -i 0-1760 -n 1) $(shuf -i 0-920 -n 1)" LOL[2]="$(cat ${FNAME}2.pixlist | shuf )"
# LOL[$i]="$(shuf_xy)" LOL[3]="$(cat ${FNAME}2.pixlist | shuf )"
#~ LOL[$i]="$(shuf_xy) #LOL[3]="$(cat $FNAME-mc.pixlist.2 | shuf)"
#~ $(cat $PIXLIST | shuf)" else
for i in 1 2 3
do
#LOL[$i]="OFFSET 1 200"
#LOL[$i]="OFFSET $(shuf -i 0-1760 -n 1) $(shuf -i 0-920 -n 1)"
# LOL[$i]="$(shuf_xy)"
LOL[$i]="$(shuf_xy)
$(cat $PIXLIST | shuf)"
#~ if [ -z "$ALPHACOLOR" ] if [ -z "$ALPHACOLOR" ]
#~ then then
#~ LOL[$i]="$(cat $PIXLIST | shuf)" LOL[$i]="$(cat $PIXLIST | shuf)"
#~ else else
#~ LOL[$i]="$(grep -v $ALPHACOLOR $PIXLIST | shuf)" LOL[$i]="$(grep -v $ALPHACOLOR $PIXLIST | shuf)"
#~ fi fi
done
fi
#~ done
LOL[1]="$(cat ${FNAME}1.pixlist | shuf)"
LOL[2]="$(cat ${FNAME}2.pixlist | shuf )"
LOL[3]="$(cat ${FNAME}2.pixlist | shuf )"
#LOL[3]="$(cat $FNAME-mc.pixlist.2 | shuf)"
while true while true
do do