#color-space #terminal #unicode #transformation #escaping #ansi #okhsv

bin+lib lcat

Another lolcat in rust! Full unicode support, escapes for ANSI escape sequences, hue shift in Cubehelix

25 releases

0.7.14 Aug 16, 2024
0.7.13 Aug 23, 2023
0.7.12 Jun 23, 2023
0.7.11 Sep 14, 2022
0.3.2 Jul 12, 2020

#396 in Text processing


Used in 2 crates

MIT/Apache

25KB
599 lines

lcat

lolcat in rust! With emoji support and color transformations in the Cubehelix and OkHSV color space.

Usage

lcat
Terminal rainbows.

USAGE:
    lcat [FLAGS] [OPTIONS] [File]...

ARGS:
    <File>...    [default: -]

FLAGS:
    -h, --help                    Prints help information
    -i, --invert                  Invert background and foreground
    -n, --shift-sign-no-random    Don't randomize sign of col and row shift values
    -V, --version                 Prints version information

OPTIONS:
    -H, --hue <hue>                Sets initial hue of text color in degress [default: random]
    -S, --seed <seed>              Sets seed [default: random]
    -C, --shift-col <shift-col>    How many degrees to shift text color hue for every column [default: 1.6]
    -R, --shift-row <shift-row>    How many degrees to shift text color hue for every row [default: 3.2]
    -s, --style <style>            Rainbow mode [default: rainbow] [possible values: rainbow, sinebow, ok-hsv]

Screenshot

a demo screenshot of lcat in action

Dependencies

~5–14MB
~178K SLoC