← 返回命令列表

Linux command

lavat 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run the lava lamp

lavat

Customize metaball and rim colors

lavat -c [green] -k [red]

Enable truecolor gradient

lavat -g -c [00FF00] -k [FF0000]

Enable gravity

lavat -G

Set speed, radius, and ball count

lavat -s [7] -r [6] -b [12]

Use custom characters

lavat -F [".:-=+*#%@"]

Run in party mode

lavat -p [p3]

说明

lavat is a terminal program that simulates a lava lamp using metaballs rendered with text characters. Each metaball is a soft circular density field; overlapping fields blend smoothly, producing the characteristic blob-merging effect of a lava lamp directly inside the terminal. The program supports both standard 256-color mode and a true-color gradient mode (-g), plus an optional gravity model (-G) that periodically heats balls at the bottom of the display so they rise, cool at the top, and fall again. Colors, radius, speed, and the number of metaballs can be tuned from the command line or adjusted interactively while the animation runs. lavat is primarily used as a decorative screensaver-style toy or a visual backdrop in a spare terminal window. It is not a screen-locking utility and does not require an X session — it runs in any Unix terminal supported by its underlying Termbox2 rendering library.

参数

-c _color_
Metaball color. Accepts a named color or hex value (e.g. _red_, _00FF00_).
-k _color_
Rim color drawn around each metaball.
-g
Enable gradient/truecolor rendering (requires a truecolor-capable terminal).
-G
Enable gravity simulation. Metaballs heat at the bottom, rise, cool at the top, then fall.
-s _1-10_
Animation speed. Default is _5_.
-r _1-10_
Metaball radius. Default is _5_.
-R _1-5_
Rim thickness around each metaball.
-b _5-20_
Number of metaballs. Default is _10_.
-F _chars_
Custom character set used to render density levels.
-C
Confine metaballs inside the terminal bounds.
-p _p1_|_p2_|_p3_
Enable one of three preset party (color-cycling) modes.
-h
Print help and exit.

FAQ

What is the lavat command used for?

lavat is a terminal program that simulates a lava lamp using metaballs rendered with text characters. Each metaball is a soft circular density field; overlapping fields blend smoothly, producing the characteristic blob-merging effect of a lava lamp directly inside the terminal. The program supports both standard 256-color mode and a true-color gradient mode (-g), plus an optional gravity model (-G) that periodically heats balls at the bottom of the display so they rise, cool at the top, and fall again. Colors, radius, speed, and the number of metaballs can be tuned from the command line or adjusted interactively while the animation runs. lavat is primarily used as a decorative screensaver-style toy or a visual backdrop in a spare terminal window. It is not a screen-locking utility and does not require an X session — it runs in any Unix terminal supported by its underlying Termbox2 rendering library.

How do I run a basic lavat example?

Run `lavat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _color_ do in lavat?

Metaball color. Accepts a named color or hex value (e.g. _red_, _00FF00_).