allow to adjust LOLFIELDSIZE

This commit is contained in:
Marcus 2024-01-05 04:37:52 +01:00
parent c1f69dcce3
commit 0247755f76
2 changed files with 4 additions and 2 deletions

View file

@ -24,6 +24,8 @@ pixelfloot was built during the 37c3. in its actual state, its just a mess. I ho
- increase No of concurrent connections: `FLOOTFORKS=8 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
- specify IP and PORT: `IPFLOOT=127.0.0.1 FLOOTPORT=1337 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
- for drawing big areas, like 1280x720, use LARGE mode: `LARGE=true ./pixelfloot_bash.sh floot images/xphg.jpg`
- default field size are 64k lines. You can adjust it with LOLFIELDSIZE:
`LOLFIELDSIZE=16000 LARGE=true ./pixelfloot_bash.sh floot images/xphg.jpg`
```shell
$ ./pixelfloot_bash.sh help

View file

@ -327,7 +327,7 @@ loadLOL() {
if [ $LARGE ]
then
LOL_org="$(echo "$LOL_org" | shuf)"
LOLFIELDSIZE=64000
test -z "$LOLFIELDSIZE" && LOLFIELDSIZE=64000
# line counter
L=1
LINES="$(echo "$LOL_org" | wc -l )"
@ -552,7 +552,7 @@ case $1 in
echo "IPFLOOT(string), FLOOTPORT(int), USECACHE(bool), FLOOTFORKS(int)"
echo "SIZE(int), TEXT(string), FONTSIZE(int), BGCOLOR(hex), COLOR(hex)"
echo "BORDERCOLOR(hex), X(int), Y(int), X_MAX(int), Y_MAX(int), H(int), W(int)"
echo "RESIZE(int), ALPHACOLOR(hex), BOUNCESTEP(int), LARGE(bool)"
echo "RESIZE(int), ALPHACOLOR(hex), BOUNCESTEP(int), LARGE(bool), LOLFIELDSIZE(int)"
exit 1
;;