Un fork de lavat pour pouvoir y ajouter des titres - retour accueil
git clone git://bebou.netlib.re/lavat
Log | Files | Refs | README | LICENSE |
commit df85b97b13753fe130f8bf134d019d82431b7eae parent 3f580b34fbf8448ffd740391e9060db7aa36bc1c Auteurice: AngelJumbo <anarjumb@gmail.com> Date: Mon, 17 Oct 2022 21:36:34 -0500 One more demo Diffstat:
M | README.md | | | 17 | ++++++++++++----- |
M | lavat.c | | | 5 | ++--- |
2 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md @@ -20,18 +20,19 @@ $ paru -S lavat-git ## Usage ``` -Usage: lavat [OPTIONS] +Usage: lavaterm [OPTIONS] OPTIONS: -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. -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 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 -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. - ``` + ## Demo `lavat -c red -R 1` @@ -43,10 +44,16 @@ OPTIONS:  -(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` + + + +(The colors depend on your terminal color scheme.) ## Credits - This program is made with [Termbox2](https://github.com/termbox/termbox2). - [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) diff --git a/lavat.c b/lavat.c @@ -218,12 +218,11 @@ void print_help() { " -s SPEED Set the speed, from 1 to 5. (default 1)\n" " -r RADIUS Set the radius of the metaballs, from 1 to 10. " "(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" " This option does not work with the default color\n" " -b NBALLS Set the number of metaballs in the simulation, from " "2 to 20. (default: 10)\n" " -F CHARS Allows for a custom set of chars to be used\n" - " -h Print help.\n" - "From a tty the rim will not work well.\n"); + " -h Print help.\n"); }