BOUNCESTEP as export var, README and help

This commit is contained in:
Marcus 2024-01-05 01:14:14 +01:00
parent ebf21954d2
commit 5df59ebe22
2 changed files with 24 additions and 14 deletions

View File

@ -27,17 +27,27 @@ pixelfloot was built during the 37c3. in its actual state, its just a mess. I ho
```shell
$ ./pixelfloot_bash.sh help
./pixelfloot_bash.sh [floot|convertimg] [FILENAME|fill|text] ([MODE])
MODE: static (env $H and $W for position)
chaos (env $H and $W for position range)
shake (env $H and $W for position range)
floot: flooting the target specified with IPFLOOT
convertimg: converts an image to a command list file in /tmp
to use it, start 'USECACHE=true ./pixelfloot_bash.sh floot [FILENAME]', where FILENAME
is the original image file.
FILENAME: path to any picture imagemagick can handle
fill: create a filled area with (env COLOR, W (width), H (height), X, Y)
text: create a textbox (env TEXT, FONTSIZE, SIZE, COLOR, BGCOLOR)
MODE: static (env X and Y for position)
chaos (env X_MAX and Y_MAX for position range)
shake (env X and Y for position range)
cursor
bounce (env $Y_MAX and $X_MAX for max bounce range)
bounce (env Y_MAX and X_MAX for max bounce range, BOUNCESTEP for step size)
available env vars to configure:
RESIZE(int), ALPHACOLOR(hex), FLOOTFORKS(int), H(int), W(int)
SIZE(int), TEXT(string), TEXTSIZE(int), BGCOLOR(hex), COLOR(hex)
X_MAX(int), Y_MAX(int)
IPFLOOT(string), FLOOTPORT(string), USECACHE(bool)
IPFLOOT(string), FLOOTPORT(int), USECACHE(bool), FLOOTFORKS(int)
SIZE(int), TEXT(string), FONTSIZE(int), BGCOLOR(hex), COLOR(hex)
X(int), Y(int), X_MAX(int), Y_MAX(int), H(int), W(int)
RESIZE(int), ALPHACOLOR(hex), BOUNCESTEP(int)
```
Running on my Ryzen 4700G with [wellenbrecher](https://github.com/bits0rcerer/wellenbrecher) 1280x720 and three workers,

View File

@ -29,7 +29,7 @@ test -z $Y && Y=0
## bounce
XDIR=0
YDIR=0
BOUNCESTEP=2
test -z "$BOUNCESTEP" && BOUNCESTEP=2
## end bounce
declare -a PIXMAP
@ -490,17 +490,17 @@ case $1 in
echo "fill: create a filled area with (env COLOR, W (width), H (height), X, Y)"
echo "text: create a textbox (env TEXT, FONTSIZE, SIZE, COLOR, BGCOLOR)"
echo ""
echo "MODE: static (env \$X and \$Y for position)"
echo " chaos (env \$X_MAX and \$Y_MAX for position range)"
echo " shake (env \$X and \$Y for position range)"
echo "MODE: static (env X and Y for position)"
echo " chaos (env X_MAX and Y_MAX for position range)"
echo " shake (env X and Y for position range)"
echo " cursor"
echo " bounce (env \$Y_MAX and \$X_MAX for max bounce range)"
echo " bounce (env Y_MAX and X_MAX for max bounce range, BOUNCESTEP for step size)"
echo ""
echo "available env vars to configure:"
echo "IPFLOOT(string), FLOOTPORT(int), USECACHE(bool), FLOOTFORKS(int)"
echo "SIZE(int), TEXT(string), FONTSIZE(int), BGCOLOR(hex), COLOR(hex)"
echo "X(int), Y(int), X_MAX(int), Y_MAX(int), H(int), W(int)"
echo "RESIZE(int), ALPHACOLOR(hex)"
echo "RESIZE(int), ALPHACOLOR(hex), BOUNCESTEP(int)"
exit 1
;;