Skip to content

Instantly share code, notes, and snippets.

@X-88
Created October 2, 2020 23:24
Show Gist options
  • Save X-88/bb55f9c90abcdd426c12faed00772a3c to your computer and use it in GitHub Desktop.
Save X-88/bb55f9c90abcdd426c12faed00772a3c to your computer and use it in GitHub Desktop.
Simple Text Animation on Console Application (Pascal)
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