Regards pascal mania, good afternoon lovers Turbo Pascal, on this happy occasion I will write program code to give color to the text and background in turbo pascal 7.0. staining on the turbo pascal program is essential in beautifying our programs and become more appealing to the eye. straight course. follow the following steps carefully.
How to make colored paper program :
- Please open your program Turbo Pascal 7.0.
- Select the file - new.
- Then write the code below:
- Then compile - compile or alt + f9 to make sure there are no errors in your program code.
- If there are no errors please select run - run.
- Congratulations you can make your program become colored.
colored program;
uses crt;
begin
textcolor(15);
textbacground(4);
clrscr;
writeln('I'm learning how to make colored paper');
writeln('Di NewsBlogs21.blogspot.com');
readln;
end.
uses crt;
begin
textcolor(15);
textbacground(4);
clrscr;
writeln('I'm learning how to make colored paper');
writeln('Di NewsBlogs21.blogspot.com');
readln;
end.
information: the core of the code coloring in this program lies in the code that I gave a red color. you can change the color with your own desires on the code I marked earlier. The following are numbers that represent the color of each color: 0 (black), 1 (blue), 2 (green), 3 (cyan), 4 (red), 5 (magenta), 6 (brown), 7 (lightgray ), 8 (DarkGray), (9) lightblue, 10 (lightgreen), 11 (lightcyan), 12 (lightred), 13 (lightmagenta), 14 (yellow), 15 (White).
* Greeting pascal mania and may be useful.
Tanks a lot
ReplyDelete