Tuesday, May 27, 2014

How to create matrix like effect using batch programming

Every one might have wondered about the cool green animation on matrix movie. Let’s try to generate an emulation of matrix effect using batch file programming.

Step 1:create batch file
Open notepad

Type the following code as you see in screen shot:



source code:

@echo off 
color 02 
:start 
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% 
goto start

Step 2:Save the file

Save  this file in .bat format. Here I am going to save as matrix.bat



Step 3:Execute

After successful save you can see matrix.bat file on saved location.double click and see the magic..

#More:

You can try more colours via changing the values for color.
Here color 02 0 will give black background as  2 gives green number
color24 will give green background and red number.enjoy…

No comments:

Post a Comment