你可以在酷酷的矩阵数字雨中嵌入任何你想要的特殊信息。
You can embed any message you want for your special one within the cool Matrix digital rain.
代码是完全可定制和矢量化的(只有一个for循环)。
The code is fully customizable and fully vectorized (with a single for-loop).
记住在之后水平翻转视频文件以获得镜像字符!
Remember to flip the video file horizontally afterwards to get the mirrored characters!
在Youtu上有一个产生视频的示例。
Here is an example of the generated video (https://youtu.be/Y_LXY7TGnWA).
为了定制矩阵数字雨的视觉效果,该代码具有以下功能:
(1)随机降雨长度
(2)随机降雨速度
(3)头部效应:每一场雨的前3个字都是亮白的。
(4)尾部效应:每一次降雨即将结束的尾部特征亮度逐渐减弱。
(5)随机尾长
(6)降雨特征按给定速率随机变化
(7)雨字亮度随机化
使用默认参数进行渲染需要大约20分钟,因此请耐心等待。MATLAB的text()函数运算速度并不快。
To reproduce the visual effect of the Matrix digital rain, the following features are incorporated:
(1) Randomized rain length
(2) Randomized rain falling speed
(3) Head effect: the first 3 characters of each rain are brighter and whiter
(4) Tail effect: the brightness of the trailing characters of each rain fade gradually
(5) Randomized tail length
(6) Rain characters change randomly at a given rate
(7) Rain characters have randomized brightness
The rendering with the default parameters take about 20 mins, so be patient. Matlab text() function is not fast.
完整资料领取请加QQ群免费下载: