Created
May 3, 2013 00:51
-
-
Save aki017/5506527 to your computer and use it in GitHub Desktop.
多分これが一番早いと思います
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
// spidermonkey | |
abs = function (x){ return (x ^ (x >> 31)) - (x >> 31);} | |
repeat = function (s,n){ return new Array(++n).join(s);} | |
var w = 20 | |
for(var i = 0;i<=100;i+=2) | |
{ | |
for(var j = 0;j<w*2;++j) | |
{ | |
print("呉x"+i); | |
var a = repeat(" ",abs(j-w)); | |
var b = repeat(" ",w-abs(j-w)); | |
for(var k = 0;k<w/4;k++) | |
{ | |
if(k==~~(abs(j-w)/4)){ | |
print(repeat(" ",w)+"呉"); | |
}else{ | |
print(); | |
} | |
} | |
print(a+"⊖"+b+b+"⊖"); | |
sleep(1/60); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[http://upload.aki017.info/raw/2013-05-03-095221.gif]