Last active
December 31, 2015 23:49
-
-
Save Yengas/8062718 to your computer and use it in GitHub Desktop.
MarkAntalya ön panel animasyonu, basit bir yaklaşım.
This file contains 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
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