2 个不稳定版本
0.2.0 | 2021 年 7 月 9 日 |
---|---|
0.1.0 | 2021 年 6 月 12 日 |
#10 in #density
10MB
940 代码行
rsmatrix
终端 matrix
雨效果。
热重载配置文件 config.rm
# all general properties (# - comment)
# file path to output parsing errors
# error_report_file :: "config_error.txt"
error_report_file :: nil
# speed range of individual rain
speed :: 1..3
# length range of individual rain
length :: 5..20
# rain color, can be either a tuple or a range of tuples
# color :: (0, 0, 0)..(0, 255, 0)
# color :: (255, 0, 0)..(128, 0, 128)
color :: (0, 200, 0)
# the color of the last character
# head_color :: (255, 0, 255)
head_color :: (255, 255, 255)
# the coefficient that determines the uniformity of interpolation of the color
# interpolate_color_koef :: 1.5
interpolate_color_koef :: nil
# minimum brightness for rain
# min_brightnes :: 0.1
min_brightnes :: nil
# rain factor
density :: 0.7
is_bold :: true
is_default_rain :: true
# rain update time delay in milliseconds
delay :: 16
# set utf8 symbols
utf8 :: true
如何执行?
> git clone https://github.com/mov-rax-rbx/rmatrix.git
> cd rmatrix
> cargo r --release
或者
> cargo install rsmatrix
依赖
依赖
~2–14MB
~111K SLoC