One more demo

This commit is contained in:
AngelJumbo 2022-10-17 21:36:34 -05:00
parent dd40020161
commit 8164259589
3 changed files with 14 additions and 8 deletions

View File

@ -20,18 +20,19 @@ $ paru -S lavat-git
## Usage ## Usage
``` ```
Usage: lavat [OPTIONS] Usage: lavaterm [OPTIONS]
OPTIONS: OPTIONS:
-c COLOR Set color. Available colours: red, blue, yellow, green, cyan and magenta. -c COLOR Set color. Available colours: red, blue, yellow, green, cyan and magenta.
Besides those colors the default one is the normal foreground of your terminal. Besides those colors the default one is the normal foreground of your terminal.
-s SPEED Set the speed, from 1 to 5. (default 1) -s SPEED Set the speed, from 1 to 5. (default 1)
-r RADIUS Set the radius of the metaballs, from 1 to 10. (default: 5) -r RADIUS Set the radius of the metaballs, from 1 to 10. (default: 5)
-R RIM Set a "rim" for each metaball, size from 1 to 5. (default: none) -R RIM Set a "rim" for each metaball, sizes from 1 to 5. (default: none)
This option does not work with the default color This option does not work with the default color
-b NBALLS Set the number of metaballs in the simulation, from 2 to 20. (default: 10) -b NBALLS Set the number of metaballs in the simulation, from 2 to 20. (default: 10)
-F CHARS Allows for a custom set of chars to be used
-h Print help. -h Print help.
``` ```
## Demo ## Demo
`lavat -c red -R 1` `lavat -c red -R 1`
@ -43,10 +44,16 @@ OPTIONS:
![demo 2](https://github.com/AngelJumbo/lavat/blob/main/demo/2.gif?raw=true) ![demo 2](https://github.com/AngelJumbo/lavat/blob/main/demo/2.gif?raw=true)
(The cyan isn't quite right because of my color scheme.) If you send more than one character to the -F option you can have 3d-ish effect.
`lavat -c blue -R2 -F @:::::: -r10`
![demo 2](https://github.com/AngelJumbo/lavat/blob/main/demo/3.gif?raw=true)
(The colors depend on your terminal color scheme.)
## Credits ## Credits
- This program is made with [Termbox2](https://github.com/termbox/termbox2). - This program is made with [Termbox2](https://github.com/termbox/termbox2).
- [Metaballs](https://en.wikipedia.org/wiki/Metaballs). - [Metaballs](https://en.wikipedia.org/wiki/Metaballs).
- [Lava lamp in JS](https://codeguppy.com/site/tutorials/lava-lamp.html) - [Lava lamp in JavaScript](https://codeguppy.com/site/tutorials/lava-lamp.html)

BIN
demo/4.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 MiB

View File

@ -218,12 +218,11 @@ void print_help() {
" -s SPEED Set the speed, from 1 to 5. (default 1)\n" " -s SPEED Set the speed, from 1 to 5. (default 1)\n"
" -r RADIUS Set the radius of the metaballs, from 1 to 10. " " -r RADIUS Set the radius of the metaballs, from 1 to 10. "
"(default: 5)\n" "(default: 5)\n"
" -R RIM Set a \"rim\" for each metaball, from 1 to 5. " " -R RIM Set a \"rim\" for each metaball, sizes from 1 to 5. "
"(default: none)\n" "(default: none)\n"
" This option does not work with the default color\n" " This option does not work with the default color\n"
" -b NBALLS Set the number of metaballs in the simulation, from " " -b NBALLS Set the number of metaballs in the simulation, from "
"2 to 20. (default: 10)\n" "2 to 20. (default: 10)\n"
" -F CHARS Allows for a custom set of chars to be used\n" " -F CHARS Allows for a custom set of chars to be used\n"
" -h Print help.\n" " -h Print help.\n");
"From a tty the rim will not work well.\n");
} }