2024-01-01 07:42:04 +01:00
# pixelfloot
2024-01-02 03:03:53 +01:00
Origin: https://git.la10cy.net/DeltaLima/pixelfloot
an very simple and dirty pixelflut client to draw images, written in bash.
2024-01-01 07:42:04 +01:00
pixelfloot was built during the 37c3. in its actual state, its just a mess. I hope i will find time to put it in a more usable and readable format.
## examples
2024-01-02 03:36:49 +01:00
- Display image: `./pixelfloot_bash.sh floot images/lucky-cat.jpg`
2024-01-02 03:37:36 +01:00
- set position: `W=1337 H=420 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
2024-01-02 03:36:49 +01:00
- image random position: `./pixelfloot_bash.sh floot images/lucky-cat.jpg chaos`
2024-01-02 03:37:36 +01:00
- wider "chaos-radio": `W=1000 H=600 ./pixelfloot_bash.sh floot images/lucky-cat.jpg chaos`
2024-01-02 03:36:49 +01:00
- image shake position: `./pixelfloot_bash.sh floot images/lucky-cat.jpg shake`
2024-01-02 03:37:36 +01:00
- set the position : `W=420 H=420 ./pixelfloot_bash.sh floot images/lucky-cat.jpg shake`
2024-01-04 04:03:10 +01:00
- image bounce across screen: `./pixelfloot_bash.sh floot images/lucky-cat.jpg bounce`
- can set the "bounce-radius": `X_MAX=1000 Y_MAX=500 ./pixelfloot_bash.sh floot images/lucky-cat.jpg bounce`
2024-01-02 03:36:49 +01:00
- move image with your cursor (needs `xdotool` ): `./pixelfloot_bash.sh floot images/lucky-cat.jpg cursor`
- Use a color as "alpha" (remove background): `ALPHACOLOR=FF00FF ./pixelfloot_bash.sh floot images/cursor.ppm cursor`
2024-01-03 21:48:02 +01:00
- write text: `TEXT="pixelflut makes a lot of fun! :)" ./pixelfloot_bash.sh floot text`
- set the size of the Textbox and the textcolor: `COLOR=FF00FF SIZE=240 TEXT="colors, yeah!" ./pixelfloot_bash.sh floot text`
- you can also use ALPHACOLOR here, or set your: `ALPHACOLOR=000000 TEXT="colors, yeah!" ./pixelfloot_bash.sh floot text`
- define your own background color: `BGCOLOR=0000FF SIZE=240 TEXT="colors, yeah!" ./pixelfloot_bash.sh floot text`
2024-01-03 17:10:31 +01:00
- increase No of concurrent connections: `FLOOTFORKS=8 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
2024-01-02 04:03:54 +01:00
- specify IP and PORT: `IPFLOOT=127.0.0.1 FLOOTPORT=1337 ./pixelfloot_bash.sh floot images/lucky-cat.jpg`
2024-01-02 03:36:07 +01:00
2024-01-02 03:34:25 +01:00
```shell
$ ./pixelfloot_bash.sh help
2024-01-03 21:48:02 +01:00
./pixelfloot_bash.sh [floot|convertimg] [FILENAME|fill|text] ([MODE])
2024-01-02 03:34:25 +01:00
MODE: static (env $H and $W for position)
chaos (env $H and $W for position range)
shake (env $H and $W for position range)
cursor
2024-01-04 03:45:13 +01:00
bounce (env $Y_MAX and $X_MAX for max bounce range)
2024-01-01 07:42:04 +01:00
2024-01-02 03:34:25 +01:00
available env vars to configure:
RESIZE(int), ALPHACOLOR(hex), FLOOTFORKS(int), H(int), W(int)
2024-01-03 21:48:02 +01:00
SIZE(int), TEXT(string), TEXTSIZE(int), BGCOLOR(hex), COLOR(hex)
2024-01-04 03:45:13 +01:00
X_MAX(int), Y_MAX(int)
2024-01-03 05:01:29 +01:00
IPFLOOT(string), FLOOTPORT(string), USECACHE(bool)
2024-01-02 03:34:25 +01:00
```
2024-01-02 03:59:09 +01:00
Running on my Ryzen 4700G with [wellenbrecher ](https://github.com/bits0rcerer/wellenbrecher ) 1280x720 and three workers,
i get around 1,5Gbit/s localhost traffic.
![pixelfloot screenshot ](demo/screenshot_pixelfloot.png )
2024-01-03 05:00:51 +01:00
## try it out
you can use my pixelflut server [pixelflut.la10cy.net ](http://pixelflut.la10cy.net ) and watch the board on the homepage, every 5s refreshed or connect by VNC to [pixelflut.la10cy.net:5900 ](vnc://pixelflut.la10cy.net:5900 )