Skip to content

Instantly share code, notes, and snippets.

@notlion
Created July 1, 2011 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notlion/1059488 to your computer and use it in GitHub Desktop.
Save notlion/1059488 to your computer and use it in GitHub Desktop.
名前
var x = 0;
var y = 0;
var symbols = [215, 178, 177, 221];
var punct = [232, 233, 234, 235];
var si = 0, pi = 0;
function printSym(s){
pSymbolA(s);
pPixel(x, y);
x += 1;
if(x > pWidth()){
x = 0;
y += 1;
}
}
while(y < pHeight()){
printSym(symbols[si]);
if(si == symbols.length - 1){
printSym(punct[pi]);
pi = (pi + 1) % punct.length;
}
si = (si + 1) % symbols.length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment