Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
random colour Posted by juice88 on 13 Jan 2005 at 7:37 AM
How to change the textcolour repeatly??
Report
Re: random colour Posted by zibadian on 13 Jan 2005 at 11:18 AM
: How to change the textcolour repeatly??
:
Here is a small example code, which changes both the text and background color of the word 'Hello' every second, until the user presses a key.
repeat
  TextColor(Random(16)+1);
  TextBackground(Random(16)+1);
  GotoXY(1, 1);
  writeln('Hello');  
  Delay(1000);
until Keypressed;
Readkey;




 

Recent Jobs