【源码】矩阵数字雨视频Matrix digital rain

640?wx_fmt=jpeg

你可以在酷酷的矩阵数字雨中嵌入任何你想要的特殊信息。

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群免费下载:

640?wx_fmt=png

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值