Flickering Screen

Posted On // Leave a Comment
Hello Friends today I will Show you a cool trick in which you will have colour flickered at your screen.

Flickering Screen





The above effect is just a result of few code lines written in a text document.

Steps to create a multicolour flashing screen
  •  Create a new text document at your desktop
  •  Now input the following code in that document.

    
@echo off
: a
color 10
goto b
: b
color 70
goto c
: c
color 40 

echo  your message here

goto a
  •  Now save this text file as any name with .bat extension on  your desktop.
  •  That's all just double click on that file and you will see the cool flashing effect.


Now let me explain you what those command means

@echo off  

used for hiding the default directory name; as the echo command displays it's followed character or digit i.e. if you write anything after echo command , it will display that again after you press enter in cmd.

:a 

or any character following : shows the label and here above I have created a label.

color 

used for generating colour i.e. the command 
is used for setting the colour for the command prompt and the command is followed by the hexadecimal digits which are used for specification of the colour.

You can change command prompt's colour and character colour.

goto 

command is followed by the label name which we have given in program at any place and it jump the program to that label.

Colour combination

The colours are specified by 2 hexadecimal digits.

The first one is for background colour and the second one for the foreground colour. These are the digits for different colors.
   
    0 = Black       8 = Gray
    1 = Blue        9 = Light Blue
    2 = Green       A = Light Green
    3 = Aqua        B = Light Aqua
    4 = Red         C = Light Red
    5 = Purple      D = Light Purple
    6 = Yellow      E = Light Yellow
    7 = White       F = Bright White

You can simply change the colour code and create your own cool effect. You can use this for scaring your friend.


Friends I am a starter learner and beginner in blogging.

And I hope you had enjoyed this trick and if in case if had done any mistake in explanation of the program the please correct me in comment it will help us all to learn.



0 comments:

Post a Comment