Skip to content

Instantly share code, notes, and snippets.

@Yengas
Last active December 31, 2015 23:49
Show Gist options
  • Save Yengas/8062718 to your computer and use it in GitHub Desktop.
Save Yengas/8062718 to your computer and use it in GitHub Desktop.
MarkAntalya ön panel animasyonu, basit bir yaklaşım.
array = "ABCDEFGHJKLMNOPRSTYZ".split("");
width = 5;
panel = [20,50];
sayac = 0;
length = array.count;
limit = width * length;
while (true) do
for r in 0..panel[0] do
for c in 0..panel[1] do
print array[((sayac+c) / width) % length];
end
puts "";
end
sayac += 1;
if sayac > limit then sayac = 0; end
sleep(0.3);
system("cls");
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment