Created
October 2, 2020 23:24
-
-
Save X-88/bb55f9c90abcdd426c12faed00772a3c to your computer and use it in GitHub Desktop.
Simple Text Animation on Console Application (Pascal)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program Animasi; | |
uses | |
crt; | |
const | |
s = ' Zephio'; | |
var | |
x: Integer; | |
procedure animasitext; | |
begin | |
x := 0; | |
textColor($00ff00); //cl lime | |
repeat | |
delay(100); | |
clrscr(); | |
x += 1; | |
if x = Length(s) then | |
animasitext(); | |
WriteLn(Copy(s, x, Length(s) - 1)); | |
until keyPressed(); | |
end; | |
begin | |
animasitext(); | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment